Function at 0x40a770
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42123b
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x42b730]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xa8], 0
xor eax, eax
mov dword [ebp - 0xa7], eax
mov dword [ebp - 0xa3], eax
mov dword [ebp - 0x9f], eax
mov dword [ebp - 0x9b], eax
mov dword [ebp - 0x97], eax
mov dword [ebp - 0x93], eax
mov dword [ebp - 0x8f], eax
mov word [ebp - 0x8b], ax
mov dword [ebp - 0xd0], 0x1f
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x194], 1
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0x400
mov dword [ebp - 0x190], 0
mov dword [ebp - 0xc8], 0x400
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x184], 0x50
mov byte [ebp - 0x6c], 0
push 0x3f
push 0
lea ecx, [ebp - 0x6b]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [ebp - 0x84], 0
xor edx, edx
mov dword [ebp - 0x83], edx
mov word [ebp - 0x7f], dx
mov byte [ebp - 0x7d], dl
lea ecx, [ebp - 0xcc]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040fe20
lea ecx, [ebp - 0x7c]
call fcn.0040fe20
mov byte [ebp - 0xb9], 0
mov byte [ebp - 0x189], 0
xor eax, eax
mov word [ebp - 0xb8], ax
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xb4], 0
call fcn.00406f60
test eax, eax
jg 0x40a921
mov dword [ebp - 0x1ac], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x1ac]
jmp 0x40b537
call fcn.0040f4a0
test eax, eax
jg 0x40a962
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x1b0]
jmp 0x40b537
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0x198], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], ecx
push 2
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00407b00
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x24], eax
push 2
push 2
lea ecx, [ebp - 0x24]
push ecx
call fcn.00407b00
lea edx, [ebp - 0xd8]
mov dword [ebp - 0x24], edx
push 2
push 4
lea eax, [ebp - 0x24]
push eax
call fcn.00407b00
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x24], ecx
push 2
push 6
lea edx, [ebp - 0x24]
push edx
call fcn.00407b00
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
push 2
push 8
lea ecx, [ebp - 0x24]
push ecx
call fcn.00407b00
lea edx, [ebp - 0xac]
mov dword [ebp - 0x24], edx
push 4
push 0xa
lea eax, [ebp - 0x24]
push eax
call fcn.00407b00
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x24], ecx
push 4
push 0xe
lea edx, [ebp - 0x24]
push edx
call fcn.00407b00
lea eax, [ebp - 0x198]
mov dword [ebp - 0x24], eax
push 4
push 0x12
lea ecx, [ebp - 0x24]
push ecx
call fcn.00407b00
cmp dword [0x42b9a8], 0
jne 0x40ad9d
push 0xc
push 0
lea edx, [ebp - 0xe4]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x14
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0
jne 0x40aab3
push 0x422fb8
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
push 1
mov eax, dword [ebp - 0x1a8]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x40aae2
push 0x422fbc
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
jne 0x40ab1a
push 0x422fc0
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
push 0x94
push 0
lea edx, [ebp - 0x17c]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x17c], 0x94
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x178], 4
jbe 0x40ab85
push 4
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x40ab83
push 0x422fc4
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
jmp 0x40abb8
push 2
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x40abb8
push 0x422fc8
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
mov dword [ebp - 0xc8], 0x400
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x1a4], eax
push 0x400
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x184], 0x50
mov eax, dword [ebp - 0x184]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a4], 0
je 0x40ac21
cmp dword [ebp - 0x74], 0
je 0x40ac21
cmp dword [ebp - 0x1a0], 0
jne 0x40ac3d
push 0x422fcc
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
mov ecx, dword [ebp - 0x74]
push ecx
lea edx, [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0x1a4]
push edx
push str.everyone
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x40ac8a
push 0x422fdc
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
push str.getsidOK___
call fcn.0040fd80
add esp, 4
mov eax, dword [ebp - 0x1a4]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x40acc4
push 0x422ff0
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
cmp dword [ebp - 0x178], 4
jbe 0x40ad0a
mov ecx, dword [ebp - 0x1a4]
push ecx
push 0x10000000
push 4
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x40ad08
push 0x422ff4
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
jmp 0x40ad45
mov eax, dword [ebp - 0x1a4]
push eax
push 0x10000000
push 2
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x40ad45
push 0x422ff8
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
push 0
mov edx, dword [ebp - 0x190]
push edx
push 1
mov eax, dword [ebp - 0x1a8]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x40ad7d
push 0x422ffc
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
mov dword [ebp - 0xe4], 0xc
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], 1
lea edx, [ebp - 0x1b8]
push edx
call fcn.0040fe00
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], edx
lea ecx, [ebp - 0x7c]
call fcn.00410b40
mov byte [ebp - 0xb9], al
lea ecx, [ebp - 0x7c]
call fcn.00410a70
mov byte [ebp - 0x189], al
push 0
call fcn.004052c0
add esp, 4
push eax
call dword [sym.imp.MSVCR90.dll_srand]
add esp, 4
call dword [sym.imp.MSVCR90.dll_rand]
mov word [ebp - 0xb8], ax
movzx eax, byte [ebp - 0xb9]
or eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
shl ecx, 8
mov dword [ebp - 0xb4], ecx
movzx edx, byte [ebp - 0x189]
or edx, dword [ebp - 0xb4]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
shl eax, 0x10
mov dword [ebp - 0xb4], eax
movzx ecx, word [ebp - 0xb8]
or ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb4], ecx
lea edx, [ebp - 0xd0]
push edx
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40ae7c
mov dword [ebp - 0xc0], 1
push 0x423000
call fcn.0040fd80
add esp, 4
jmp 0x40b3fd
push 0x1069
push 0x423004
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x84]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0xd0]
lea eax, [ebp + edx - 0xa8]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0xd0]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0xd0]
sub edx, dword [ebp - 0x18]
cmp edx, 1
jbe 0x40aefe
mov eax, dword [ebp - 0xd0]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp + eax - 0xaa]
mov dword [ebp - 0xc4], ecx
jmp 0x40af14
mov edx, dword [ebp - 0xd0]
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp + edx - 0xa9]
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc90.dll_Ordinal_945]
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
push eax
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea edx, [ebp - 0xa8]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp dword [0x42b9a8], 0
jne 0x40afca
lea eax, [ebp - 0xa8]
push eax
push 0x38
push 0
push 4
lea ecx, [ebp - 0xe4]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x42b9a8], eax
cmp dword [0x42b9a8], 0
jne 0x40afae
push 0x423008
call fcn.0040fd80
add esp, 4
lea edx, [ebp - 0xa8]
push edx
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
push str.FileName::
call fcn.0040fd80
add esp, 4
lea eax, [ebp - 0xa8]
push eax
call fcn.0040fd80
add esp, 4
push 0
push 0
push 0
push 0xf001f
mov ecx, dword [0x42b9a8]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40b00d
mov dword [ebp - 0xc0], 1
push 0x423018
call fcn.0040fd80
add esp, 4
jmp 0x40b3fd
mov edx, dword [ebp - 0x188]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0xc4]
xor eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xb4]
xor edx, 0x3a19db5
xor edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x88]
mov dword [eax], edx
cmp dword [0x428004], 2
jne 0x40b077
cmp dword [0x42b990], 0
jne 0x40b077
mov ecx, dword [ebp - 0xb4]
xor ecx, 0xea6cff4
xor ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x88]
mov dword [edx + 8], ecx
jmp 0x40b0a7
cmp dword [0x428004], 1
jne 0x40b08b
cmp dword [0x42b990], 0
je 0x40b08b
jmp 0x40b0a7
mov dword [ebp - 0xc0], 1
push 0x42301c
call fcn.0040fd80
add esp, 4
jmp 0x40b3fd
mov eax, dword [ebp - 0x88]
add eax, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0xb4]
xor ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x24]
mov dword [edx], ecx
mov eax, dword [ebp - 0xb0]
xor eax, dword [ebp - 0xb4]
xor eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xd8]
xor edx, dword [ebp - 0xb4]
xor edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x24]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x19c]
xor ecx, dword [ebp - 0xb4]
xor ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0xb4]
xor eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0xac]
xor edx, dword [ebp - 0xb4]
xor edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0xd4]
xor ecx, dword [ebp - 0xb4]
xor ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 0x198]
xor eax, dword [ebp - 0xb4]
xor eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x1c], eax
cmp dword [ebp - 0x188], 0
je 0x40b18c
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x188], 0
push 0x423020
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc90.dll_Ordinal_945]
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
push eax
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea eax, [ebp - 0xa8]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp dword [0x42b9ac], 0
jne 0x40b23b
lea ecx, [ebp - 0xa8]
push ecx
push 0x38
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x42b9ac], eax
cmp dword [0x42b9ac], 0
jne 0x40b21f
push str.614X
call fcn.0040fd80
add esp, 4
lea edx, [ebp - 0xa8]
push edx
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0xc0], 1
jmp 0x40b3fd
push str.FileNameX::
call fcn.0040fd80
add esp, 4
lea eax, [ebp - 0xa8]
push eax
call fcn.0040fd80
add esp, 4
push 0
push 0
push 0
push 0xf001f
mov ecx, dword [0x42b9ac]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40b27e
mov dword [ebp - 0xc0], 1
push str.615X
call fcn.0040fd80
add esp, 4
jmp 0x40b3fd
mov edx, dword [ebp - 0x188]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0xc4]
xor eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xb4]
xor edx, 0x3a19db5
xor edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x88]
mov dword [eax], edx
cmp dword [0x428004], 2
jne 0x40b2e8
cmp dword [0x42b990], 0
jne 0x40b2e8
mov ecx, dword [ebp - 0xb4]
xor ecx, 0xea6cff4
xor ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x88]
mov dword [edx + 8], ecx
jmp 0x40b318
cmp dword [0x428004], 1
jne 0x40b2fc
cmp dword [0x42b990], 0
je 0x40b2fc
jmp 0x40b318
mov dword [ebp - 0xc0], 1
push str.616X
call fcn.0040fd80
add esp, 4
jmp 0x40b3fd
mov eax, dword [ebp - 0x88]
add eax, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0xb4]
xor ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x24]
mov dword [edx], ecx
mov eax, dword [ebp - 0xb0]
xor eax, dword [ebp - 0xb4]
xor eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xd8]
xor edx, dword [ebp - 0xb4]
xor edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x24]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x19c]
xor ecx, dword [ebp - 0xb4]
xor ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0xb4]
xor eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0xac]
xor edx, dword [ebp - 0xb4]
xor edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0xd4]
xor ecx, dword [ebp - 0xb4]
xor ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 0x198]
xor eax, dword [ebp - 0xb4]
xor eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x1c], eax
cmp dword [ebp - 0x188], 0
je 0x40b3fd
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x188], 0
cmp dword [ebp - 0x188], 0
je 0x40b41d
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x188], 0
cmp dword [ebp - 0x1a8], 0
je 0x40b440
mov ecx, dword [ebp - 0x1a8]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [ebp - 0x1a8], 0
cmp dword [ebp - 0x74], 0
je 0x40b45a
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x1a0], 0
je 0x40b47d
mov eax, dword [ebp - 0x1a0]
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [ebp - 0x1a0], 0
cmp dword [ebp - 0x1a4], 0
je 0x40b4a0
mov ecx, dword [ebp - 0x1a4]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [ebp - 0x1a4], 0
cmp dword [ebp - 0x190], 0
je 0x40b4c3
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [ebp - 0x190], 0
cmp dword [ebp - 0xc0], 0
je 0x40b502
mov dword [ebp - 0x194], 0
cmp dword [0x42b9a8], 0
je 0x40b4f5
mov eax, dword [0x42b9a8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42b9a8], 0
push str.9042
call fcn.004100f0
add esp, 4
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x1bc], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0041fff8
mov esp, ebp
pop ebp
ret