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

Disassembly:
sub esp, 0x4c0
push ebx
push ebp
mov ebp, dword [0x40729c]
push esi
push edi
xor ebx, ebx
push 0x4073e6
push ebx
push 0xc
mov esi, ecx
mov eax, dword [esi + 0x24]
push 0x3f6
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ebx
call ebp
mov edi, dword [0x407228]
push eax
call edi
mov ecx, dword [esi + 0x24]
push 0x4073e6
push ebx
push 0xc
push 0x3f7
push ecx
call ebp
push eax
call edi
mov edx, dword [esi + 0x24]
push 0x4073e6
push ebx
push 0xc
push 0x3f8
push edx
call ebp
push eax
call edi
mov eax, dword [esi + 0x24]
push 0x4073e6
push ebx
push 0xc
push 0x3f9
push eax
call ebp
push eax
call edi
mov ecx, dword [esi + 0x24]
push 0x4073e6
push ebx
push 0xc
push 0x3fa
push ecx
call ebp
push eax
call edi
mov edx, dword [esi + 0x24]
push 0x4073e6
push ebx
push 0xc
push 0x3fb
push edx
call ebp
push eax
call edi
mov eax, dword [esi + 0x24]
push 0x4073e6
push ebx
push 0xc
push 0x3fc
push eax
call ebp
push eax
call edi
mov ecx, dword [esi + 0x24]
push 0x4073e6
push ebx
push 0xc
push 0x3fd
push ecx
call ebp
push eax
call edi
mov edx, dword [esi + 0x24]
push ebx
push ebx
push 0x184
push 0x400
push edx
call ebp
push eax
call edi
mov eax, dword [esi + 0x24]
push ebx
push ebx
push 0x1009
push 0x3ff
push eax
call ebp
push eax
call edi
mov ecx, dword [esi + 0x20]
push ebx
push ebx
push 0x188
push ecx
call edi
lea edx, [esp + 0x1c4]
push edx
push eax
mov eax, dword [esi + 0x20]
push 0x189
push eax
call edi
mov edx, dword [esi + 0x24]
lea ecx, [esp + 0x1c4]
push ecx
push edx
call dword [0x407254]
push 0x104
lea eax, [esp + 0x2cc]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x1d0]
push ecx
push ebx
push ebx
call dword [0x4070b0]
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push 0x10
push ebx
lea eax, [esp + 0x2dc]
push eax
call dword [0x4072d8]
test eax, eax
jne 0x405288
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x4075ec
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jne 0x40527c
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x10
push 0x4075dc
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x404cdf
mov eax, 1
lea edx, [esp + 0x74]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x54], 2
mov dword [esp + 0x5c], 3
mov dword [esp + 0x64], 4
mov dword [esp + 0x6c], 5
mov dword [esp + 0x74], 6
mov ecx, dword [eax]
push 5
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x404cc6
cmp word [esp + 0x74], 0x1e
jne 0x404c36
mov ecx, dword [esp + 0x7c]
mov edx, dword [esi + 0x24]
push ecx
push ebx
push 0xc
push 0x3f6
push edx
call ebp
push eax
call edi
cmp word [esp + 0x84], 0x1e
jne 0x404c5a
mov eax, dword [esp + 0x8c]
mov ecx, dword [esi + 0x24]
push eax
push ebx
push 0xc
push 0x3f7
push ecx
call ebp
push eax
call edi
cmp word [esp + 0x94], 0x1e
jne 0x404c7e
mov edx, dword [esp + 0x9c]
mov eax, dword [esi + 0x24]
push edx
push ebx
push 0xc
push 0x3f8
push eax
call ebp
push eax
call edi
cmp word [esp + 0xa4], 0x1e
jne 0x404ca2
mov ecx, dword [esp + 0xac]
mov edx, dword [esi + 0x24]
push ecx
push ebx
push 0xc
push 0x3fc
push edx
call ebp
push eax
call edi
cmp word [esp + 0xb4], 0x1e
jne 0x404cc6
mov eax, dword [esp + 0xbc]
mov ecx, dword [esi + 0x24]
push eax
push ebx
push 0xc
push 0x3fd
push ecx
call ebp
push eax
call edi
lea edx, [esp + 0x74]
push edx
push 5
call dword [0x4072dc]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push 0x10
push 0x4075cc
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x404ed3
mov eax, 1
lea edx, [esp + 0x74]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x54], 0xe
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x64], 2
mov dword [esp + 0x6c], 0xc
mov dword [esp + 0x74], 0xd
mov ecx, dword [eax]
push 5
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x404eba
cmp word [esp + 0x74], 0x1e
jne 0x404d7e
mov ecx, dword [esp + 0x7c]
mov edx, dword [esi + 0x24]
push ecx
push ebx
push 0xc
push 0x3f9
push edx
call ebp
push eax
call edi
cmp word [esp + 0x84], 0x1e
jne 0x404da2
mov eax, dword [esp + 0x8c]
mov ecx, dword [esi + 0x24]
push eax
push ebx
push 0xc
push 0x3fa
push ecx
call ebp
push eax
call edi
cmp word [esp + 0x94], 0x1e
jne 0x404dc6
mov edx, dword [esp + 0x9c]
mov eax, dword [esi + 0x24]
push edx
push ebx
push 0xc
push 0x3fb
push eax
call ebp
push eax
call edi
cmp word [esp + 0xa4], 0x100c
jne 0x404eba
cmp word [esp + 0xb4], 0x101e
jne 0x404eba
cmp dword [esp + 0xac], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jbe 0x404eba
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x10], ebx
jmp 0x404e10
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 8]
mov eax, dword [esi + 0x24]
push edx
push ebx
push 0x180
push 0x400
push eax
call ebp
push eax
call edi
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x10]
cmp dword [eax + ecx + 0x18], 0
jle 0x404e9b
nop
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
push ecx
lea edx, [esp + 0xc8]
push 0x407518
push edx
call dword [0x407188]
mov ecx, dword [esi + 0x24]
add esp, 0xc
lea eax, [esp + 0xc4]
push eax
push 0
push 0x180
push 0x400
push ecx
call ebp
push eax
call edi
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0x10]
add dword [esp + 0x14], 1
add ebx, 1
cmp ebx, dword [edx + eax + 0x18]
jl 0x404e40
mov ecx, dword [esp + 0x18]
add dword [esp + 0x10], 0x20
add ecx, 2
xor ebx, ebx
cmp ecx, dword [esp + 0xac]
mov dword [esp + 0x18], ecx
jb 0x404e10
lea eax, [esp + 0x74]
push eax
push 5
call dword [0x4072dc]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push 0x10
push 0x4075bc
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x405270
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x78], ebx
call eax
test eax, eax
jne 0x405264
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x40]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x404f67
lea esp, [esp]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x404f4a
push eax
call dword [0x4072e0]
mov dword [esp + 0x3c], 0
add ebx, 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x40]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x404f30
mov dword [esp + 0x70], ebx
xor ecx, ecx
mov eax, ebx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call 0x406af6
mov dword [esp + 0x18], eax
xor ecx, ecx
mov eax, ebx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call 0x406af6
mov ecx, ebx
shl ecx, 4
push ecx
push 0
push eax
mov dword [esp + 0x2c], eax
call 0x406afc
mov eax, dword [esp + 0x28]
lea edx, [ebx*8]
push edx
push 0
push eax
call 0x406afc
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
add esp, 0x20
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
xor ebx, ebx
push ebx
lea edx, [esp + 0x40]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x40], ebx
call eax
test eax, eax
jne 0x405088
cmp dword [esp + 0x3c], 0
je 0x405067
mov ecx, dword [esp + 0x14]
mov dword [ecx + ebx*8], 0
mov eax, dword [esp + 0x3c]
lea edx, [eax + 2]
jmp 0x405010
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405010
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
call dword [0x4072e4]
mov ecx, dword [esp + 0x14]
mov dword [ecx + ebx*8 + 4], eax
mov ecx, dword [esp + 0x3c]
mov edx, eax
jmp 0x405040
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x405040
mov edx, dword [esp + 0x3c]
push edx
add ebx, 1
call dword [0x4072e0]
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x40]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x404ff2
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi + 0x24]
push 0
push 0
push 0x1009
push 0x3ff
push eax
call ebp
push eax
call edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x18]
push edx
push ebx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x405222
test ebx, ebx
mov dword [esp + 0x34], eax
jle 0x405241
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
push 0xff
push eax
lea ecx, [esp + 0xcc]
push ecx
call dword [0x407184]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0xd0]
add esp, 0xc
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], eax
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x405128
mov edx, dword [esi + 0x24]
sub eax, ecx
lea ecx, [esp + 0x48]
push ecx
push 0
push 0x1007
push 0x3ff
push edx
mov dword [esp + 0x74], eax
call ebp
push eax
call edi
push 0xff
lea eax, [esp + 0xc8]
push eax
push ebx
push esi
call fcn.00404830
lea ecx, [esp + 0xd4]
mov eax, ecx
mov dword [esp + 0x6c], ecx
add esp, 0x10
mov dword [esp + 0x50], 1
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x405180
lea edx, [esp + 0x48]
push edx
push 0
sub eax, ecx
push 0x1006
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x24]
push 0x3ff
push eax
call ebp
push eax
call edi
push 0xff
lea ecx, [esp + 0xc8]
push ecx
push ebx
push esi
call fcn.00404720
lea edx, [esp + 0xd4]
mov eax, edx
add esp, 0x10
mov dword [esp + 0x50], 2
mov dword [esp + 0x5c], edx
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4051d8
sub eax, ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x48]
push eax
push 0
push 0x1006
push 0x3ff
push ecx
call ebp
push eax
call edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x28], 8
add eax, 1
add ebx, 0x10
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
jl 0x4050e5
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x405241
mov esi, dword [esp + 0x14]
add esi, 4
lea ecx, [ecx]
mov edx, dword [esi]
push edx
call dword [0x4072e0]
add esi, 8
sub ebx, 1
jne 0x405230
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x70]
push esi
push eax
call dword [0x4072dc]
mov ecx, dword [esp + 0x14]
push ecx
call 0x406af0
push esi
call 0x406af0
add esp, 8
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c0
ret