Function at 0x4047ee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 0x6dc]
mov byte [ebp - 0x128], 0
push dword [edi + 0x6d8]
mov byte [ebp - 0x238], 0
push dword [edi + 0x444]
call fcn.00402bd4
mov eax, dword [edi + 0x6d8]
mov esi, dword [ebp + 8]
and dword [ebp - 0xc], 0
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x6dc]
mov dword [esi + 0x74], eax
or eax, 0xffffffff
add esp, 0x10
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], eax
push dword [edi + 0x580]
mov ebx, dword [edi + 0x1a0c]
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [edi + 0x444]
mov ecx, edi
call fcn.00404380
test eax, eax
jne 0x40488f
xor eax, eax
jmp 0x404edb
mov dl, byte [ebx + 2]
push 0x58
pop eax
cmp dl, al
jne 0x404933
mov dword [esi + 0x7c], eax
mov ebx, dword [edi + 0x1a0c]
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xd28], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0xc9c], eax
mov eax, dword [esi + 0x74]
push 0
push 0x100
mov dword [edi + 0xca0], eax
mov dword [edi + 0xca4], 1
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call fcn.004182a0
add eax, dword [ebx + 0x10]
push 0
adc edx, dword [ebx + 0x14]
push 2
push edx
push eax
call fcn.004182a0
cmp dword [edi + 0x580], 0
mov ecx, eax
mov dword [ebp - 4], edx
je 0x404914
movzx eax, word [ebp - 0xc]
lea edx, [eax + 2]
add dword [esi + 0x84], edx
add eax, 2
add ecx, eax
adc dword [ebp - 4], 0
jmp 0x404928
movzx eax, word [ebx + 5]
mov dword [esi + 0x84], eax
movzx eax, word [ebx + 5]
cdq
add ecx, eax
adc dword [ebp - 4], edx
add dword [edi + 0x6d8], ecx
jmp 0x404ecf
push 0x41
pop eax
cmp dl, al
jne 0x404964
mov dword [esi + 0x7c], eax
mov eax, dword [edi + 0x6d8]
mov dword [edi + 0x6d0], eax
mov eax, dword [edi + 0x6dc]
mov dword [edi + 0x5ac], 1
mov dword [edi + 0x6d4], eax
jmp 0x404888
cmp dl, 0x53
jne 0x404980
mov eax, dword [esi + 0x70]
mov dword [edi + 0x6f0], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x6f4], eax
jmp 0x404888
xor ecx, ecx
mov dword [ebp - 0x18], ecx
cmp dl, 0x44
jne 0x404b93
test byte [ebx + 3], 0x80
je 0x4049a1
movzx ecx, word [ebx + 0x29]
mov dword [ebp - 4], 0x2b
jmp 0x4049ac
movzx ecx, word [ebx + 0x21]
mov dword [ebp - 4], 0x23
mov eax, 0x10e
mov dword [ebp + 8], ecx
cmp ecx, eax
jbe 0x4049bb
mov dword [ebp + 8], eax
push 0x110
lea eax, [ebp - 0x128]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0x1a0c]
add eax, dword [ebp - 4]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
push 0x110
push dword [esi]
call fcn.004018bd
test byte [ebx + 3], 0x40
je 0x404a0e
mov eax, dword [esi]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
cmp dword [edi + 0x107c], 0
jne 0x404a58
mov eax, dword [esi]
cmp byte [eax], 0x5c
jne 0x404a24
cmp byte [eax + 1], 0x5c
je 0x404a30
cmp byte [eax + 1], 0x3a
jne 0x404a58
cmp byte [eax + 2], 0x5c
jne 0x404a58
push 0x110
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.00403321
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push 0x110
push dword [esi]
call fcn.004018bd
push dword [esi]
call fcn.00403090
mov dword [esp], 0x110
push dword [esi]
mov ecx, edi
call fcn.00402595
mov eax, dword [esi]
cmp byte [eax], 0
jne 0x404a7a
and dword [esi + 0x48], 0
movzx eax, word [ebx + 3]
test al, 0x20
je 0x404a89
mov dword [ebp - 0x18], 1
mov edx, dword [ebx + 0x19]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x1d]
test al, al
jns 0x404aad
mov eax, dword [ebx + 0x25]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x21]
mov dword [ebp - 0x10], eax
mov dword [esi + 0x48], 1
mov eax, dword [ebx + 0x15]
mov dword [esi + 0x24], eax
mov eax, dword [ebx + 0x11]
mov dword [esi + 0x28], eax
movzx eax, byte [ebx + 0xb]
mov dword [esi + 0x2c], eax
movzx eax, word [ebx + 3]
mov dword [esi + 0x78], eax
test al, 2
je 0x404adb
mov dword [esi + 0x44], 1
jmp 0x404ae4
shr eax, 0xb
and eax, 2
mov dword [esi + 0x44], eax
test dword [esi + 0x78], 0x2000
je 0x404af7
mov dword [edi + 0x5b0], 1
test byte [esi + 0x78], 8
je 0x404b15
cmp dword [edi + 0x598], 0
jne 0x404b15
mov dword [edi + 0x560], 0x6df4
jmp 0x404888
movzx eax, byte [ebx + 0xc]
mov dword [esi + 0x38], eax
movzx eax, word [ebx]
mov dword [esi + 0x90], eax
mov eax, dword [ebx + 0xd]
mov dword [esi + 0x30], eax
movzx eax, byte [ebx + 0xa]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], edx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], eax
movzx eax, byte [ebx + 2]
mov dword [esi + 0x7c], eax
cmp dword [edi + 0x580], 0
je 0x404b6d
movzx eax, word [ebp - 0xc]
inc eax
inc eax
jmp 0x404b71
movzx eax, word [ebx + 5]
mov dword [esi + 0x84], eax
movzx eax, byte [ebx + 7]
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0x84]
xor ecx, ecx
add eax, edx
adc ecx, dword [ebp - 0x10]
jmp 0x404d0b
mov eax, dword [edi + 0x1a0c]
cmp dl, 0x56
jne 0x404ce3
movzx ecx, word [eax + 0xb]
mov dword [ebp - 4], eax
mov eax, 0x10e
mov dword [ebp + 8], ecx
cmp ecx, eax
jbe 0x404bb8
mov dword [ebp + 8], eax
push 0x110
lea eax, [ebp - 0x128]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0x1a0c]
push dword [ebp + 8]
add eax, 0xd
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
push 0x110
push dword [esi]
call fcn.004018bd
test byte [ebx + 3], 0x40
je 0x404c0b
mov eax, dword [esi]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
push dword [esi]
call fcn.00402ed5
cmp dword [edi + 0x107c], 0
pop ecx
jne 0x404c5c
mov eax, dword [esi]
cmp byte [eax], 0x5c
jne 0x404c29
cmp byte [eax + 1], 0x5c
je 0x404c35
cmp byte [eax + 1], 0x3a
jne 0x404c5c
cmp byte [eax + 2], 0x5c
jne 0x404c5c
mov ebx, 0x110
push ebx
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.00403321
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push ebx
push dword [esi]
call fcn.004018bd
jmp 0x404c61
mov ebx, 0x110
push dword [esi]
call fcn.00403090
pop ecx
push ebx
push dword [esi]
mov ecx, edi
call fcn.00402595
mov eax, dword [esi]
xor ecx, ecx
cmp byte [eax], cl
jne 0x404c7e
mov dword [esi + 0x48], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 7]
mov dword [esi + 0x28], edx
xor edx, edx
inc edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
movzx ebx, byte [eax + 2]
mov dword [esi + 0x7c], ebx
movzx ebx, word [eax + 3]
mov dword [esi + 0x78], ebx
cmp dword [edi + 0x580], ecx
je 0x404cb6
add dword [esi + 0x84], 2
test ebx, 0x2000
je 0x404cc4
mov dword [edi + 0x5b0], edx
test byte [eax + 3], 0x20
je 0x404ccd
mov dword [ebp - 0x18], edx
cmp dword [edi + 0x580], ecx
je 0x404cdd
movzx eax, word [ebp - 0xc]
inc eax
inc eax
jmp 0x404d05
movzx eax, word [eax + 5]
jmp 0x404d05
mov dword [esi + 0x48], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
movzx eax, byte [eax + 2]
mov dword [esi + 0x7c], eax
cmp dword [edi + 0x580], ecx
jne 0x404cd5
movzx eax, word [ebx + 5]
mov dword [esi + 0x84], eax
mov ebx, dword [edi + 0x1a0c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov dword [ebp + 8], ebx
jmp 0x404e83
push dword [edi + 0x444]
call fcn.00402c52
pop ecx
push dword [edi + 0x580]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x1a0c]
mov ecx, edi
push dword [edi + 0x444]
mov dword [ebp - 0x10], edx
call fcn.00404380
test eax, eax
je 0x404888
mov cl, byte [ebx + 2]
cmp cl, 0x49
jne 0x404db5
mov eax, 0x4850
cmp word [ebx + 7], ax
jne 0x404db5
mov eax, 0x5153
mov edx, eax
cmp word [ebx + 9], dx
jne 0x404dba
mov ebx, dword [edi + 0x1a0c]
lea eax, [esi + 0x60]
push eax
lea eax, [ebx + 0x13]
push eax
mov dword [esi + 0x54], 1
call dword [sym.imp.KERNEL32.DLL_FileTimeToLocalFileTime]
lea eax, [esi + 0x68]
push eax
lea eax, [ebx + 0x1b]
push eax
call dword [sym.imp.KERNEL32.DLL_FileTimeToLocalFileTime]
lea eax, [esi + 0x58]
push eax
add ebx, 0xb
push ebx
call dword [sym.imp.KERNEL32.DLL_FileTimeToLocalFileTime]
mov ebx, dword [ebp + 8]
jmp 0x404e4c
mov eax, 0x5153
cmp cl, 0x49
jne 0x404e4c
mov edx, 0x5553
cmp word [ebx + 7], dx
jne 0x404dd6
mov edx, eax
cmp word [ebx + 9], dx
je 0x404e4c
cmp cl, 0x49
jne 0x404e4c
mov edx, 0x5344
cmp word [ebx + 7], dx
jne 0x404e13
mov edx, eax
cmp word [ebx + 9], dx
jne 0x404e13
mov eax, dword [esi + 0xc0]
and eax, dword [esi + 0xc4]
cmp eax, 0xffffffff
jne 0x404e4c
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc0], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc4], eax
jmp 0x404e4c
cmp cl, 0x49
jne 0x404e4c
mov ecx, 0x414c
cmp word [ebx + 7], cx
jne 0x404e4c
cmp word [ebx + 9], ax
jne 0x404e4c
mov eax, dword [esi + 0xc8]
and eax, dword [esi + 0xcc]
cmp eax, 0xffffffff
jne 0x404e4c
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xcc], eax
cmp dword [edi + 0x580], 0
je 0x404e6e
movzx eax, word [ebp - 0xc]
lea ecx, [eax + 2]
add dword [esi + 0x84], ecx
add eax, 2
add dword [ebp - 8], eax
adc dword [ebp - 4], 0
jmp 0x404e83
movzx eax, word [ebx + 5]
add dword [esi + 0x84], eax
movzx eax, word [ebx + 5]
cdq
add dword [ebp - 8], eax
adc dword [ebp - 4], edx
mov eax, 0x8000
test word [ebx + 3], ax
jne 0x404d1f
cmp dword [ebp - 0x18], 0
je 0x404ec6
push esi
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [edi + 0x444]
mov ecx, edi
call fcn.00404492
add dword [esi + 0x84], eax
cdq
add dword [ebp - 8], eax
adc dword [ebp - 4], edx
cmp dword [edi + 0x560], 0
jne 0x404888
mov eax, dword [ebp - 8]
add dword [edi + 0x6d8], eax
mov eax, dword [ebp - 4]
adc dword [edi + 0x6dc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4