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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4469a8
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
mov eax, dword [0x459210]
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 0x404e08
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.004351c0
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 0x404f4c
lea eax, [esp + 0x2c]
push eax
push 0x3b
mov byte [esp + 0x1f], 0
call fcn.0040e0d0
pop ecx
pop ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.00403ca7
test eax, eax
jbe 0x404e9a
push dword [esp + 0x20]
lea esi, [esp + 0x30]
call fcn.00407e6a
push 0x449dac
mov ebx, 0x449e18
mov edi, eax
call fcn.0040c060
pop ecx
push 0x5c
push 0x2f
call fcn.0040c110
push 0x449e0c
mov eax, edi
call fcn.0040c1e0
add esp, 0xc
inc dword [esp + 0x20]
mov eax, esi
call fcn.00403ca7
cmp dword [esp + 0x20], eax
jb 0x404e52
mov ebx, dword [esp + 0x30]
cmp ebx, dword [esp + 0x34]
jbe 0x404ea9
call fcn.004358f5
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 0x404ec8
call fcn.004358f5
mov dword [esp + 0x40], esi
lea edi, [esp + 0x3c]
lea esi, [esp + 0x24]
call fcn.00403d97
test al, al
je 0x404f2b
call fcn.00403d7a
cmp dword [eax + 0x14], 0
mov esi, dword [esp + 0x24]
jne 0x404f13
push ebx
push dword [esp + 0x38]
lea eax, [ebx + 0x1c]
call fcn.00405e53
mov eax, dword [esp + 0x3c]
pop ecx
pop ecx
push eax
add eax, 0xffffffe4
call fcn.00403f3d
sub dword [esp + 0x34], 0x1c
mov dword [esp + 0x24], esi
jmp 0x404eb5
test esi, esi
jne 0x404f1c
call fcn.004358f5
cmp ebx, dword [esi + 8]
jb 0x404f26
call fcn.004358f5
add ebx, 0x1c
jmp 0x404eb5
lea eax, [esp + 0x2c]
call fcn.00403ca7
test eax, eax
jne 0x404f46
lea esi, [esp + 0x2c]
call fcn.00403c68
jmp 0x404ddd
mov edi, dword [esp + 0x4c]
xor ebx, ebx
mov eax, dword [esp + 0x48]
lea esi, [esp + 0xe0]
call fcn.00403d1d
mov byte [esp + 0x158], 1
cmp dword [esp + 0xf4], ebx
je 0x404f77
push 0x10
mov ecx, esi
call fcn.0040cf00
pop ecx
mov esi, dword [edi]
cmp esi, ebx
mov dword [esp + 0x20], esi
je 0x404f88
mov eax, esi
call fcn.0040e3e0
add edi, 8
call fcn.0041634f
mov ebx, eax
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x24], ebx
jne 0x404fd2
cmp esi, eax
mov byte [esp + 0x158], 1
je 0x404fad
call fcn.0040ef40
mov ebx, 0x80004005
push 0
push 1
lea esi, [esp + 0xe8]
call fcn.004012b6
lea esi, [esp + 0x2c]
call fcn.00403c68
mov eax, ebx
jmp 0x404de2
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 0x405020
lea esi, [esp + 0x50]
call fcn.004054b2
mov byte [esp + 0x158], 1
mov esi, dword [esp + 0x20]
test esi, esi
je 0x40501c
call fcn.0040ef40
mov ebx, edi
jmp 0x404fb2
cmp dword [esp + 0x44], eax
jne 0x40504b
lea esi, [esp + 0x50]
call fcn.004054b2
mov byte [esp + 0x158], 1
mov esi, dword [esp + 0x20]
test esi, esi
je 0x405044
call fcn.0040ef40
xor ebx, ebx
jmp 0x404fb2
cmp dword [esp + 0x44], eax
mov dword [esp + 0x18], eax
jbe 0x405193
lea eax, [esp + 0x9c]
mov byte [esp + 0x1f], 0
call fcn.0040e580
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 0x4053b9
cmp dword [esp + 0x9c], 4
jne 0x4050b2
mov eax, dword [esp + 0xbc]
or eax, dword [esp + 0xc0]
je 0x4050b2
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.00407d0e
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 0x4053b9
lea eax, [esp + 0xa0]
lea esi, [esp + 0xc4]
call fcn.00403d1d
cmp byte [esp + 0x17], 0
mov byte [esp + 0x158], 5
je 0x40532e
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.00415fdb
lea edi, [esp + 0x70]
mov esi, eax
call fcn.00413cf8
test al, al
je 0x405159
mov eax, ebx
push eax
lea eax, [esp + 0x54]
call fcn.004054cd
mov ebx, dword [esp + 0x24]
push 0
push 1
lea esi, [esp + 0xcc]
call fcn.004012b6
lea esi, [esp + 0x9c]
mov byte [esp + 0x158], 3
call fcn.0040e5a0
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x44]
jb 0x405059
xor edi, edi
cmp dword [esp + 0x54], edi
je 0x405026
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
sar eax, 2
je 0x405026
push 0x140
call fcn.004354c3
pop ecx
mov dword [esp + 0x18], eax
cmp eax, edi
mov byte [esp + 0x158], 6
je 0x4051d3
push eax
call fcn.00410c79
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.0041622d
movzx eax, byte [ebp + 0x10]
push eax
movzx eax, byte [ebp + 0xc]
mov byte [esp + 0x15c], 7
call fcn.00411222
lea eax, [esp + 0xfc]
call fcn.0040e400
mov ebx, dword [esp + 0x4c]
push eax
lea eax, [ebx + 0x74]
push eax
mov byte [esp + 0x160], 8
call fcn.0040e7c0
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.004110f2
lea esi, [esp + 0x60]
call fcn.00403c68
push 0
push 1
lea esi, [esp + 0x88]
mov byte [esp + 0x160], 8
call fcn.004012b6
cmp byte [esp + 0x17], 0
je 0x4052be
cmp dword [ebx + 0x98], 0
jne 0x4052be
lea eax, [esp + 0x50]
call fcn.00405527
mov esi, dword [esp + 0x24]
mov edi, dword [esi]
lea eax, [esp + 0x18]
call fcn.0041666a
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 0x4053ca
cmp byte [esp + 0x17], al
jne 0x4053ca
xor esi, esi
cmp dword [esp + 0x54], 0
je 0x4053ca
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
sar eax, 2
cmp esi, eax
jae 0x4053ca
mov eax, dword [esp + 0x54]
lea eax, [eax + esi*4]
push eax
add ebx, 0x90
lea edi, [esp + 0x64]
call fcn.0040540e
mov ebx, dword [esp + 0x4c]
inc esi
jmp 0x4052f2
cmp byte [esp + 0x1f], 0
jne 0x40515d
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x34]
jbe 0x405348
call fcn.004358f5
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 0x405367
call fcn.004358f5
mov dword [esp + 0x7c], esi
lea edi, [esp + 0x78]
lea esi, [esp + 0x3c]
call fcn.00403d97
test al, al
je 0x40515d
call fcn.00403d7a
lea esi, [esp + 0xc4]
call fcn.0040bf90
test eax, eax
jne 0x4053a3
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x54]
call fcn.004054cd
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x34]
jb 0x4053b2
call fcn.004358f5
add dword [esp + 0x40], 0x1c
jmp 0x405358
lea esi, [esp + 0x9c]
call fcn.0040e5a0
jmp 0x404ffe
lea esi, [esp + 0xfc]
call fcn.0040e430
lea eax, [esp + 0x18]
mov byte [esp + 0x158], 3
call fcn.00434ebd
lea esi, [esp + 0x50]
call fcn.004054b2
mov byte [esp + 0x158], 1
mov esi, dword [esp + 0x20]
test esi, esi
je 0x405405
call fcn.0040ef40
mov ebx, dword [esp + 0x48]
jmp 0x404fb2