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

Disassembly:
push 0xffffffffffffffff
push 0x496058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x4afb38]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
xor ebx, ebx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], ebx
call fcn.00485567
mov ecx, dword [esp + 0x74]
push ecx
lea ecx, [esp + 0x40]
call fcn.00485567
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
cmp eax, 0xffffffff
mov dword [esp + 0x40], edx
jne 0x4407f4
mov dword [esp + 0x44], ebx
jmp 0x440822
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
or ecx, 0xffffff00
and edx, 0xff
shl ecx, 8
or ecx, edx
shr eax, 0x10
shl ecx, 8
and eax, 0xff
or ecx, eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
cmp dword [ecx - 8], ebx
je 0x440b9d
mov eax, dword [esi + 0x208]
cmp eax, 0x20
jge 0x440b67
movsx ecx, byte [ecx]
sub ecx, 9
je 0x440b67
dec ecx
je 0x440b4e
sub ecx, 3
je 0x440b67
mov edi, dword [esi + 0x138]
push 0x4ab880
mov ecx, edi
call fcn.0041fe40
cmp eax, ebx
jge 0x44087f
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x58]
call fcn.004181f0
jmp 0x440885
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edx
push ecx
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.0043fc10
mov edx, dword [esp + 0x40]
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov eax, 0x49a6b0
cmp edx, dword [eax]
jle 0x4408ca
add eax, 4
inc ecx
cmp eax, 0x49a6c0
jb 0x4408bb
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x18]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + ecx*4 + 0x3c]
push edx
push eax
call fcn.00404930
mov eax, dword [esi + 0x38]
mov dword [esp + 0x70], ebx
cmp eax, ebx
je 0x4409e9
mov edx, dword [eax + 8]
mov ecx, dword [esi + 0x78]
cmp ecx, edx
jge 0x4409e9
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x74]
mov ebp, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], edi
mov edx, dword [ebp]
lea ebx, [ecx + eax]
mov ecx, ebp
call dword [edx + 8]
cmp edi, eax
jge 0x4409e9
jmp 0x44092c
mov edi, dword [esp + 0x6c]
mov eax, dword [ebp]
push edi
mov ecx, ebp
call dword [eax + 4]
mov edi, eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0xc]
test eax, eax
je 0x4409e9
mov eax, dword [edi]
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x30]
push edx
mov ecx, dword [esi + ecx*4 + 0x3c]
push eax
mov byte [esp + 0x68], 1
call fcn.00404930
mov edx, dword [eax]
mov eax, dword [esi + 0x3e0]
add ebx, edx
mov edx, dword [esp + 0x68]
push edx
push eax
call fcn.00440c30
add esp, 8
test eax, eax
je 0x440992
cmp ebx, dword [esp + 0x28]
jg 0x4409d3
jmp 0x4409aa
mov ecx, dword [esp + 0x68]
mov eax, dword [esi + 0x3dc]
push ecx
push eax
call fcn.00440c30
add esp, 8
test eax, eax
je 0x4409db
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 0
call fcn.0048542a
mov edi, dword [esp + 0x6c]
mov edx, dword [ebp]
inc edi
mov ecx, ebp
mov dword [esp + 0x6c], edi
call dword [edx + 8]
cmp edi, eax
jl 0x440928
jmp 0x4409e9
mov dword [esp + 0x70], 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 0
call fcn.0048542a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x28]
cmp ecx, eax
jle 0x440a13
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x3dc]
push edx
push eax
call fcn.00440c30
add esp, 8
test eax, eax
je 0x440a1b
mov eax, dword [esp + 0x70]
test eax, eax
je 0x440a5a
mov ecx, dword [esi + 0x208]
inc ecx
mov eax, ecx
mov dword [esi + 0x208], ecx
cmp eax, 0x20
jge 0x440b67
sub esp, 0x10
mov edx, dword [0x4aa0d0]
mov ebx, esp
xor eax, eax
mov edi, dword [0x4aa0d4]
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00402ee0
mov eax, dword [esi + 0x208]
push 0
lea ecx, [eax*8]
sub ecx, eax
mov edx, dword [esi + ecx*4 + 0x474]
lea edi, [esi + ecx*4 + 0x46c]
push edx
mov ecx, edi
call fcn.00449030
mov ebx, eax
lea eax, [esp + 0x38]
push eax
lea ebp, [ebx + 8]
mov ecx, ebp
call fcn.00485517
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [ebp + 4]
call fcn.00485517
mov edx, dword [esp + 0x40]
mov dword [ebp + 8], edx
mov eax, dword [esp + 0x44]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x440ab8
mov dword [eax], ebx
jmp 0x440abb
mov dword [edi + 4], ebx
sub esp, 0x10
mov dword [edi + 8], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov ebx, esp
lea ecx, [ecx + eax + 2]
lea edi, [edx + edi + 2]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov ecx, esi
mov dword [ebx + 0xc], edi
call fcn.00402ee0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x440b67
mov ecx, dword [esi + 0x3c]
lea edx, [esp + 0x20]
push eax
push edx
call fcn.00404930
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, ebx
sub eax, ecx
mov ecx, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
neg ecx
sar eax, 1
add ecx, edx
mov edx, dword [esp + 0x10]
neg eax
add eax, edx
sub esp, 0x10
lea edi, [ecx + edi + 2]
lea edx, [eax + ebx + 2]
mov ebx, esp
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00402ee0
jmp 0x440b67
lea ecx, [eax*8]
sub ecx, eax
cmp dword [esi + ecx*4 + 0x478], ebx
je 0x440b67
inc eax
mov dword [esi + 0x208], eax
mov eax, dword [esi + 0x2e4]
xor ebx, ebx
cmp eax, ebx
je 0x440b9d
cmp dword [esi + 0x3c4], ebx
jne 0x440b9d
mov edx, dword [esi + 0x3c0]
mov ecx, esi
push edx
call fcn.00441010
cmp eax, dword [esi + 0x23c]
je 0x440b97
mov dword [esi + 0x238], eax
mov dword [esi + 0x23c], eax
cmp dword [esi + 0x230], ebx
jne 0x440be2
mov ecx, esi
call fcn.00441070
test eax, eax
jne 0x440be2
cmp dword [esi + 0x218], ebx
je 0x440be2
cmp dword [esi + 0x2c4], 0x64
je 0x440be2
mov eax, dword [esi + 0x208]
cmp eax, 0x20
jge 0x440bea
lea ecx, [eax*8]
sub ecx, eax
cmp dword [esi + ecx*4 + 0x478], ebx
je 0x440bea
push 1
jmp 0x440be3
push ebx
mov ecx, esi
call fcn.0042d9f0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 2
call fcn.0048542a
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], 0xffffffff
call fcn.0048542a
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 0x10