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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446b65
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x45a210]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
mov eax, dword [0x45a210]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
xor ebx, ebx
cmp dword [edi], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], eax
jne 0x404eca
mov eax, 0x80004005
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0043579e
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [edi + 4], eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp ecx, ebx
mov dword [esp + 0x158], ebx
je 0x40500e
lea eax, [esp + 0x2c]
push eax
push 0x3b
mov byte [esp + 0x1f], 0
call fcn.0040e240
pop ecx
pop ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.00403cfb
test eax, eax
jbe 0x404f5c
push dword [esp + 0x20]
lea esi, [esp + 0x30]
call fcn.00403d11
push 0x449dac
mov ebx, 0x449e18
mov edi, eax
call fcn.0040c1a0
pop ecx
push 0x5c
push 0x2f
call fcn.0040c250
push 0x449e0c
mov eax, edi
call fcn.0040c320
add esp, 0xc
inc dword [esp + 0x20]
mov eax, esi
call fcn.00403cfb
cmp dword [esp + 0x20], eax
jb 0x404f14
mov ebx, dword [esp + 0x30]
cmp ebx, dword [esp + 0x34]
jbe 0x404f6b
call fcn.00435ed5
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], eax
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x30], esi
mov dword [esp + 0x28], ebx
jbe 0x404f8a
call fcn.00435ed5
mov dword [esp + 0x40], esi
lea edi, [esp + 0x3c]
lea esi, [esp + 0x24]
call fcn.00403e55
test al, al
je 0x404fed
call fcn.00403e38
cmp dword [eax + 0x14], 0
mov esi, dword [esp + 0x24]
jne 0x404fd5
push ebx
push dword [esp + 0x38]
lea eax, [ebx + 0x1c]
call fcn.00405fc5
mov eax, dword [esp + 0x3c]
pop ecx
pop ecx
push eax
add eax, 0xffffffe4
call fcn.00403ffb
sub dword [esp + 0x34], 0x1c
mov dword [esp + 0x24], esi
jmp 0x404f77
test esi, esi
jne 0x404fde
call fcn.00435ed5
cmp ebx, dword [esi + 8]
jb 0x404fe8
call fcn.00435ed5
add ebx, 0x1c
jmp 0x404f77
lea eax, [esp + 0x2c]
call fcn.00403cfb
test eax, eax
jne 0x405008
lea esi, [esp + 0x2c]
call fcn.00403cbc
jmp 0x404e9f
mov edi, dword [esp + 0x4c]
xor ebx, ebx
mov eax, dword [esp + 0x48]
lea esi, [esp + 0xe0]
call fcn.00403d90
mov byte [esp + 0x158], 1
cmp dword [esp + 0xf4], ebx
je 0x405039
push 0x10
mov ecx, esi
call fcn.0040d040
pop ecx
mov esi, dword [edi]
cmp esi, ebx
mov dword [esp + 0x20], esi
je 0x40504a
mov eax, esi
call fcn.0040e550
add edi, 8
call fcn.00410f09
mov ebx, eax
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x24], ebx
jne 0x405094
cmp esi, eax
mov byte [esp + 0x158], 1
je 0x40506f
call fcn.0040f220
mov ebx, 0x80004005
push 0
push 1
lea esi, [esp + 0xe8]
call fcn.004012ba
lea esi, [esp + 0x2c]
call fcn.00403cbc
mov eax, ebx
jmp 0x404ea4
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov byte [esp + 0x158], 3
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x4050e2
lea esi, [esp + 0x50]
call fcn.00429938
mov byte [esp + 0x158], 1
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4050de
call fcn.0040f220
mov ebx, edi
jmp 0x405074
cmp dword [esp + 0x44], eax
jne 0x40510d
lea esi, [esp + 0x50]
call fcn.00429938
mov byte [esp + 0x158], 1
mov esi, dword [esp + 0x20]
test esi, esi
je 0x405106
call fcn.0040f220
xor ebx, ebx
jmp 0x405074
cmp dword [esp + 0x44], eax
mov dword [esp + 0x18], eax
jbe 0x405255
lea eax, [esp + 0x9c]
mov byte [esp + 0x1f], 0
call fcn.0040e570
lea ecx, [esp + 0x9c]
push ecx
mov byte [esp + 0x15c], 4
mov eax, dword [ebx]
push 6
push dword [esp + 0x20]
mov ecx, ebx
call dword [eax + 0x1c]
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x40547b
cmp dword [esp + 0x9c], 4
jne 0x405174
mov eax, dword [esp + 0xbc]
or eax, dword [esp + 0xc0]
je 0x405174
mov byte [esp + 0x1f], 1
lea eax, [esp + 0xa0]
mov dword [esp + 0x9c], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
call fcn.00407e41
mov eax, dword [ebx]
lea ecx, [esp + 0x9c]
push ecx
push 3
push dword [esp + 0x20]
mov ecx, ebx
call dword [eax + 0x1c]
mov edi, eax
cmp edi, esi
jne 0x40547b
lea eax, [esp + 0xa0]
lea esi, [esp + 0xc4]
call fcn.00403d90
cmp byte [esp + 0x17], 0
mov byte [esp + 0x158], 5
je 0x4053f0
mov esi, dword [esp + 0x4c]
mov eax, dword [esi + 0x94]
add esi, 0x90
mov dword [esp + 0x74], eax
lea eax, [esp + 0x60]
push eax
lea ebx, [esp + 0x1c]
mov dword [esp + 0x74], esi
call fcn.00405574
lea edi, [esp + 0x70]
mov esi, eax
call fcn.00405655
test al, al
je 0x40521b
mov eax, ebx
push eax
lea eax, [esp + 0x54]
call fcn.004055c5
mov ebx, dword [esp + 0x24]
push 0
push 1
lea esi, [esp + 0xcc]
call fcn.004012ba
lea esi, [esp + 0x9c]
mov byte [esp + 0x158], 3
call fcn.0040e590
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x44]
jb 0x40511b
xor edi, edi
cmp dword [esp + 0x54], edi
je 0x4050e8
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
sar eax, 2
je 0x4050e8
push 0x140
call fcn.00435aa3
pop ecx
mov dword [esp + 0x18], eax
cmp eax, edi
mov byte [esp + 0x158], 6
je 0x405295
push eax
call fcn.0041134f
mov edi, eax
mov ecx, edi
neg ecx
lea eax, [edi + 8]
sbb ecx, ecx
and ecx, eax
lea esi, [esp + 0x18]
mov byte [esp + 0x158], 3
call fcn.00405fb7
movzx eax, byte [ebp + 0x10]
push eax
movzx eax, byte [ebp + 0xc]
mov byte [esp + 0x15c], 7
call fcn.004118f8
lea eax, [esp + 0xfc]
call fcn.0040e850
mov ebx, dword [esp + 0x4c]
push eax
lea eax, [ebx + 0x74]
push eax
mov byte [esp + 0x160], 8
call fcn.0040e7b0
pop ecx
pop ecx
mov eax, 0x449dac
lea ecx, [esp + 0x80]
call fcn.00401222
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x158], 0xa
push dword [esp + 0x120]
lea eax, [esp + 0x118]
push dword [esp + 0x120]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x5c]
mov eax, dword [ebx + 0x70]
push dword [esp + 0x3c]
push edi
call fcn.004117c8
lea esi, [esp + 0x60]
call fcn.00403cbc
push 0
push 1
lea esi, [esp + 0x88]
mov byte [esp + 0x160], 8
call fcn.004012ba
cmp byte [esp + 0x17], 0
je 0x405380
cmp dword [ebx + 0x98], 0
jne 0x405380
lea eax, [esp + 0x50]
call fcn.0040561f
mov esi, dword [esp + 0x24]
mov edi, dword [esi]
lea eax, [esp + 0x18]
call fcn.004151f7
push eax
push 0
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call dword [edi + 0x20]
test eax, eax
mov dword [esp + 0x48], eax
jne 0x40548c
cmp byte [esp + 0x17], al
jne 0x40548c
xor esi, esi
cmp dword [esp + 0x54], 0
je 0x40548c
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
sar eax, 2
cmp esi, eax
jae 0x40548c
mov eax, dword [esp + 0x54]
lea eax, [eax + esi*4]
push eax
add ebx, 0x90
lea edi, [esp + 0x64]
call fcn.004054d0
mov ebx, dword [esp + 0x4c]
inc esi
jmp 0x4053b4
cmp byte [esp + 0x1f], 0
jne 0x40521f
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x34]
jbe 0x40540a
call fcn.00435ed5
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x78], eax
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x30], esi
jbe 0x405429
call fcn.00435ed5
mov dword [esp + 0x7c], esi
lea edi, [esp + 0x78]
lea esi, [esp + 0x3c]
call fcn.00403e55
test al, al
je 0x40521f
call fcn.00403e38
lea esi, [esp + 0xc4]
call fcn.0040c0d0
test eax, eax
jne 0x405465
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x54]
call fcn.004055c5
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x34]
jb 0x405474
call fcn.00435ed5
add dword [esp + 0x40], 0x1c
jmp 0x40541a
lea esi, [esp + 0x9c]
call fcn.0040e590
jmp 0x4050c0
lea esi, [esp + 0xfc]
call fcn.0040e880
lea eax, [esp + 0x18]
mov byte [esp + 0x158], 3
call fcn.00410f6a
lea esi, [esp + 0x50]
call fcn.00429938
mov byte [esp + 0x158], 1
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4054c7
call fcn.0040f220
mov ebx, dword [esp + 0x48]
jmp 0x405074