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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x666b9d
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push esi
push edi
mov eax, dword [0x7289f4]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x98], ebx
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], edi
jg 0x404ec7
mov ecx, dword [ebx + 0x58]
push edi
call fcn.0048f1f0
test eax, eax
jle 0x404eb9
mov esi, dword [esp + 0x48]
mov ecx, dword [ebx + 0x58]
push edi
mov dword [esp + 0x44], esi
call fcn.0048f1f0
mov ecx, dword [ebx + 0x2c]
add esi, eax
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x58]
mov dword [esp + 0x48], esi
mov esi, dword [ecx + 0xf8]
cmp esi, dword [ecx + 0xf4]
mov dword [esp + 0x5c], esi
jge 0x404eb9
lea ebx, [ebx]
push esi
call fcn.0048f220
test eax, eax
jle 0x404ea5
mov edx, dword [esp + 0x44]
mov ecx, dword [ebx + 0x58]
push esi
mov dword [esp + 0x40], edx
call fcn.0048f220
mov ecx, dword [ebx + 0x58]
add dword [esp + 0x44], eax
push esi
push edi
call fcn.00404100
lea esi, [ebx + 0x3c]
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
xor ecx, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], 0x68b274
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 0x60]
push eax
push ecx
push ecx
mov dword [esp + 0x134], ecx
call dword [0x68a1ac]
push eax
lea ecx, [esp + 0x64]
call fcn.004a58ef
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.004a5a2a
push 1
mov ecx, esi
call fcn.004a4ca2
test edi, edi
je 0x404e6d
mov ecx, edi
call fcn.0048c6d0
mov edx, dword [edi]
mov ecx, edi
test al, al
je 0x404826
mov edx, dword [edx + 0xec]
lea eax, [esp + 0xe4]
push eax
call edx
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x104]
push ecx
mov ecx, dword [ebx + 0x58]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xec]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xe8]
push edx
push eax
call fcn.0048fef0
test eax, eax
je 0x404e6d
mov edx, dword [esp + 0xf0]
mov eax, dword [esp + 0xec]
lea ecx, [esp + 0xf4]
push ecx
mov ecx, dword [ebx + 0x58]
push edx
push eax
call fcn.0048fef0
test eax, eax
je 0x404e6d
mov ecx, dword [esp + 0xf0]
push ecx
mov ecx, dword [ebx + 0x58]
call fcn.0048f220
mov edx, dword [esp + 0xf4]
add eax, dword [esp + 0x18]
sub edx, dword [esp + 0x104]
mov ecx, dword [ebx + 0x58]
add edx, eax
mov eax, dword [esp + 0xec]
push eax
mov dword [esp + 0x24], edx
call fcn.0048f1f0
mov edx, dword [esp + 0xec]
mov ecx, eax
mov eax, dword [esp + 0xf8]
sub eax, dword [esp + 0x108]
add ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
add eax, ecx
cmp eax, dword [ebx + 0x38]
mov dword [esp + 0x24], eax
jle 0x4045fb
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x58]
push eax
call fcn.0048f1f0
mov ecx, dword [esp + 0x24]
dec dword [esp + 0x14]
sub ecx, eax
cmp ecx, dword [ebx + 0x38]
mov dword [esp + 0x24], ecx
jg 0x4045db
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], 0x68b294
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], 0x68b284
mov edx, dword [edi]
mov eax, dword [edx + 0x54]
mov ecx, edi
mov byte [esp + 0x128], 2
call eax
mov dword [esp + 0x14], eax
cmp eax, 0xff000000
jne 0x40463f
mov dword [esp + 0x14], 0xffffff
mov edx, dword [edi]
mov eax, dword [edx + 0x50]
mov ecx, edi
call eax
mov dword [esp + 0x10], eax
cmp eax, 0xff000000
jne 0x40465b
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x68a1b0]
push eax
lea ecx, [esp + 0x94]
call fcn.004a58ef
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
push eax
call dword [0x68a1b4]
push eax
lea ecx, [esp + 0x74]
call fcn.004a58ef
mov edx, dword [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [edx + 0x30]
push eax
mov ecx, esi
call edx
lea eax, [esp + 0x90]
push eax
mov ecx, esi
call fcn.004a5a2a
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x40]
inc ecx
push ecx
inc eax
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
call dword [0x68a1c0]
mov eax, dword [esp + 0x20]
dec dword [esp + 0x24]
dec eax
mov dword [esp + 0x20], eax
sub eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0xa4], eax
mov eax, dword [esi]
add eax, 0x68
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
mov ecx, edi
mov dword [esp + 0xa8], 0x2710
call edx
mov edx, dword [edi]
or eax, 0x400
push eax
lea eax, [esp + 0xa0]
push eax
mov eax, dword [edx + 0x38]
push 0xffffffffffffffff
mov ecx, edi
call eax
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa8], eax
sub eax, edx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [edi]
sar eax, 1
add eax, ecx
mov dword [esp + 0xa0], ecx
cmp eax, ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esi]
mov ecx, edi
jl 0x4047b9
add eax, 0x68
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x4c]
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
lea ecx, [esp + 0xa0]
push ecx
push 0xffffffffffffffff
mov ecx, edi
call eax
mov edx, dword [esp + 0x1c]
jmp 0x4047da
add eax, 0x68
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x4c]
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
mov ecx, edi
call eax
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esp + 0x90]
call fcn.004a5947
lea ecx, [esp + 0x70]
call fcn.004a5947
lea ecx, [esp + 0x90]
mov byte [esp + 0x128], 1
mov dword [esp + 0x90], 0x68b284
call fcn.004037e0
mov dword [esp + 0x70], 0x68b294
lea ecx, [esp + 0x70]
jmp 0x404e60
mov eax, dword [edx + 0xf0]
call eax
test al, al
je 0x404c17
mov edx, dword [edi]
mov edx, dword [edx + 0xf4]
lea eax, [esp + 0x114]
push eax
mov ecx, edi
call edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
mov ecx, dword [ebx + 0x58]
push edx
call fcn.00493cb0
mov edi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0xec]
lea ecx, [esp + 0xd4]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10c]
push ecx
mov ecx, dword [ebx + 0x58]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
push edx
push eax
call fcn.0048fef0
test eax, eax
je 0x404e6d
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0xcc]
push ecx
mov ecx, dword [ebx + 0x58]
push edx
push eax
call fcn.0048fef0
test eax, eax
je 0x404e6d
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0xdc]
lea ecx, [esp + 0xfc]
push ecx
mov ecx, dword [ebx + 0x58]
push edx
push eax
call fcn.0048fef0
test eax, eax
je 0x404e6d
mov ecx, dword [esp + 0xd4]
push ecx
mov ecx, ebx
call fcn.00403510
mov edx, dword [esp + 0x38]
push edx
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.00403510
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x404950
lea ecx, [esp + 0x60]
mov dword [esp + 0x128], 0xffffffff
mov dword [esp + 0x60], 0x68b274
call fcn.004037e0
mov ebx, dword [esp + 0x98]
jmp 0x404e9d
mov ecx, dword [esp + 0xd0]
sub ecx, dword [esp + 0x110]
mov eax, dword [esp + 0xcc]
sub eax, dword [esp + 0x10c]
mov edx, dword [esp + 0xe0]
add dword [esp + 0x2c], ecx
mov ebx, dword [esp + 0x98]
mov ecx, dword [ebx + 0x58]
add dword [esp + 0x28], eax
push edx
call fcn.0048f220
mov ecx, dword [esp + 0xfc]
sub ecx, dword [esp + 0xcc]
add eax, dword [esp + 0x28]
mov edx, dword [esp + 0xdc]
fadd qword [eax]
add byte [eax], al
add ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x58]
push edx
call fcn.0048f1f0
mov edx, dword [esp + 0x100]
sub edx, dword [esp + 0xd0]
mov ecx, eax
mov eax, dword [esp + 0x2c]
add ecx, eax
add edx, ecx
cmp eax, dword [ebx + 0x30]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], ecx
jge 0x4049ff
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x58]
push edx
call fcn.0048f1f0
mov ecx, dword [esp + 0x2c]
inc dword [esp + 0x14]
add ecx, eax
cmp ecx, dword [ebx + 0x30]
mov dword [esp + 0x2c], ecx
jl 0x4049df
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], 0x68b294
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], 0x68b284
mov eax, dword [edi]
mov edx, dword [eax + 0x54]
mov ecx, edi
mov byte [esp + 0x128], 4
call edx
mov dword [esp + 0x10], eax
cmp eax, 0xff000000
jne 0x404a43
mov dword [esp + 0x10], 0xffffff
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
mov ecx, edi
call edx
mov dword [esp + 0x14], eax
cmp eax, 0xff000000
jne 0x404a5f
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x10]
push eax
call dword [0x68a1b0]
push eax
lea ecx, [esp + 0x7c]
call fcn.004a58ef
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
push eax
call dword [0x68a1b4]
push eax
lea ecx, [esp + 0x8c]
call fcn.004a58ef
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x30]
push eax
mov ecx, esi
call edx
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call fcn.004a5a2a
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x88]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [ebx + 0x40]
push edx
push eax
push ecx
call dword [0x68a1c0]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov edx, dword [edi]
mov dword [esp + 0xb4], eax
mov eax, dword [esi]
xor ecx, ecx
add eax, 0x68
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x4c]
mov ecx, edi
mov dword [esp + 0xb8], 0x2710
call eax
mov edx, dword [edi]
or eax, 0x400
push eax
mov eax, dword [edx + 0x38]
lea ecx, [esp + 0xb0]
push ecx
push 0xffffffffffffffff
mov ecx, edi
call eax
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x28]
mov edx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0xb0], ecx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [edi]
sar eax, 1
add eax, ecx
cmp eax, ecx
mov dword [esp + 0xb0], eax
mov eax, dword [esi]
mov ecx, edi
jl 0x404baa
add eax, 0x68
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x4c]
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
lea ecx, [esp + 0xb0]
push ecx
push 0xffffffffffffffff
mov ecx, edi
call eax
mov edx, dword [esp + 0x1c]
jmp 0x404bcb
add eax, 0x68
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x4c]
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
lea ecx, [esp + 0x2c]
push ecx
push 0xffffffffffffffff
mov ecx, edi
call eax
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esp + 0x78]
call fcn.004a5947
lea ecx, [esp + 0x88]
call fcn.004a5947
lea ecx, [esp + 0x78]
mov byte [esp + 0x128], 3
mov dword [esp + 0x78], 0x68b284
call fcn.004037e0
mov dword [esp + 0x88], 0x68b294
lea ecx, [esp + 0x88]
jmp 0x404e60
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 0x68b294
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], 0x68b284
mov edx, dword [edi]
mov eax, dword [edx + 0x54]
mov ecx, edi
mov byte [esp + 0x128], 6
call eax
mov edx, dword [edi]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x50]
mov ecx, edi
call eax
cmp dword [esp + 0x14], 0xff000000
mov dword [esp + 0x10], eax
jne 0x404c8b
mov dword [esp + 0x14], 0xffffff
cmp eax, 0xff000000
jne 0x404c9a
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x68a1b0]
push eax
lea ecx, [esp + 0x6c]
call fcn.004a58ef
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
push eax
call dword [0x68a1b4]
push eax
lea ecx, [esp + 0x84]
call fcn.004a58ef
mov edx, dword [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [edx + 0x30]
push eax
mov ecx, esi
call edx
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call fcn.004a5a2a
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov edx, dword [ebx + 0x40]
inc ecx
push ecx
inc eax
push eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x54]
push eax
push ecx
push edx
call dword [0x68a1c0]
mov eax, dword [esp + 0x54]
dec dword [esp + 0x58]
dec eax
mov dword [esp + 0x54], eax
sub eax, dword [esp + 0x4c]
xor ecx, ecx
mov dword [esp + 0xc4], eax
mov eax, dword [esi]
add eax, 0x68
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ecx
mov ecx, edi
mov dword [esp + 0xc8], 0x2710
call edx
mov edx, dword [edi]
or eax, 0x400
push eax
lea eax, [esp + 0xc0]
push eax
mov eax, dword [edx + 0x38]
push 0xffffffffffffffff
mov ecx, edi
call eax
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x50]
mov edx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc8], eax
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
mov edx, dword [edi]
sar eax, 1
add eax, ecx
mov dword [esp + 0xc0], ecx
cmp eax, ecx
mov dword [esp + 0xc0], eax
mov eax, dword [esi]
mov ecx, edi
jl 0x404df8
add eax, 0x68
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x4c]
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
lea ecx, [esp + 0xc0]
push ecx
push 0xffffffffffffffff
mov ecx, edi
call eax
mov edx, dword [esp + 0x1c]
jmp 0x404e19
add eax, 0x68
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x4c]
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
lea ecx, [esp + 0x50]
push ecx
push 0xffffffffffffffff
mov ecx, edi
call eax
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esp + 0x68]
call fcn.004a5947
lea ecx, [esp + 0x80]
call fcn.004a5947
lea ecx, [esp + 0x68]
mov byte [esp + 0x128], 5
mov dword [esp + 0x68], 0x68b284
call fcn.004037e0
mov dword [esp + 0x80], 0x68b294
lea ecx, [esp + 0x80]
mov byte [esp + 0x128], 0
call fcn.004037e0
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
push 0xffffffffffffffff
mov ecx, esi
call eax
lea ecx, [esp + 0x60]
call fcn.004a5947
lea ecx, [esp + 0x60]
mov dword [esp + 0x128], 0xffffffff
mov dword [esp + 0x60], 0x68b274
call fcn.004037e0
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x5c]
mov ecx, dword [ebx + 0x58]
inc esi
cmp esi, dword [ecx + 0xf4]
mov dword [esp + 0x5c], esi
jl 0x404460
inc edi
cmp edi, dword [ebp + 0xc]
mov dword [esp + 0x38], edi
jle 0x404412
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8