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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x51d06c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], 0
and dl, 2
mov byte [esp + 0x13], dl
mov ebx, dword [edi + 8]
mov esi, dword [edi + 0x74]
movzx ecx, word [edi + 0x46]
mov dword [esp + 0x24], ecx
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
movsx eax, byte [edi + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [esi + 0x38]
mov dword [esp + 0x1c], ecx
test dl, dl
je 0x441006
cmp byte [esi + 8], 0
je 0x440fe8
push ecx
push esi
call fcn.004389b0
movzx esi, word [esi + 0x14]
add esp, 8
movzx ecx, ax
add esi, 2
add esi, ecx
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x24]
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x440fe8
mov dword [esp + 0x2c], 1
jmp 0x441006
mov bl, byte [edi + 0x45]
mov ecx, edi
call fcn.0043c290
test bl, bl
je 0x44104c
mov eax, dword [edi + 0x20]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x3c], eax
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
cmp byte [eax + 8], 0
jne 0x4410cf
and byte [edi + 1], 0xf1
xor eax, eax
mov word [edi + 0x32], ax
cmp byte [edi], al
jne 0x4410c0
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x4410c0
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x4410c0
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x4410cf
mov eax, dword [edi + 0x2c]
push 0
push eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
call fcn.00425f90
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4410a7
push 0
push ebx
push dword [edi + 0x38]
xor edx, edx
mov ecx, edi
call fcn.0043c500
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x44108a
mov dword [edi + 0x10], ebx
jmp 0x441002
push ebx
call fcn.004261a0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
mov esi, 7
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0043d450
test eax, eax
jne 0x4413ce
test byte [edi + 1], 0x20
je 0x4410ef
mov edx, dword [edi + 0x40]
mov ecx, dword [esp + 0x14]
push edi
call fcn.00438240
mov esi, eax
add esp, 4
test esi, esi
jne 0x4413cc
cmp dword [edi + 0x70], 0
jne 0x441135
cmp byte [ebx + 0xb], 0
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x40]
je 0x441135
mov eax, dword [ebx + 4]
mov byte [ebx + 0xb], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x441135
test byte [eax + 1], 0x10
je 0x44112e
mov byte [ebx + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x44112e
cmp dword [eax + 0x20], edx
jne 0x44112e
cmp dword [eax + 0x24], esi
jne 0x44112e
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x441112
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x44115a
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x44115a
cmp dword [edx + 0x60], 0
je 0x441187
call fcn.00432d30
jmp 0x44117f
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x4413ce
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x44117a
call fcn.00434520
jmp 0x44117f
call fcn.00434450
test eax, eax
jne 0x4413ce
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.0043dfa0
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, ebx
lea eax, [esp + 0xc]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.0043e4b0
mov esi, dword [esp + 0x14]
add esp, 8
test esi, esi
jne 0x4413cc
cmp byte [ebx + 8], 0
jne 0x4412c8
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x20]
dec eax
mov esi, dword [edi + 0x74]
cmp ecx, eax
jge 0x4411e6
mov eax, dword [edi + ecx*4 + 0x7c]
mov eax, dword [eax + 4]
jmp 0x4411e9
mov eax, dword [esi + 4]
movzx ecx, word [esi + 0x16]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x18]
movzx ebx, cx
and ebx, eax
lea eax, [edx + 4]
add ebx, edx
cmp ebx, eax
jae 0x441247
push 0x515994
push 0x116b2
push 0x515928
push 0x51590c
push 0xb
call fcn.00428aa0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ebx
push esi
call eax
mov ecx, dword [esi + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x14], eax
call fcn.00434710
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4412a0
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push dword [esp + 0x1c]
add eax, 4
push eax
lea eax, [ebx - 4]
mov ebx, dword [esp + 0x28]
push eax
mov ecx, ebx
call fcn.0043e5d0
add esp, 0x14
jmp 0x4412a4
mov ebx, dword [esp + 0x18]
movzx edx, word [esi + 0x16]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
dec edx
mov ecx, esi
call fcn.0043e4b0
mov esi, dword [esp + 0x14]
add esp, 8
test esi, esi
jne 0x4413cc
mov ecx, edi
call fcn.00440620
mov esi, eax
test esi, esi
jne 0x4413cc
movsx eax, byte [edi + 0x44]
cmp eax, dword [esp + 0x20]
jle 0x441356
mov eax, dword [edi + 0x74]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x4412f6
call fcn.00432650
jmp 0x4412fb
call fcn.0042e900
mov cl, byte [edi + 0x44]
mov esi, dword [esp + 0x20]
dec cl
movsx eax, cl
mov byte [edi + 0x44], cl
cmp eax, esi
jle 0x44133f
nop
movsx eax, cl
dec cl
mov eax, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], cl
test eax, eax
je 0x441335
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x441330
call fcn.00432650
jmp 0x441335
call fcn.0042e900
mov cl, byte [edi + 0x44]
movsx eax, cl
cmp eax, esi
jg 0x441310
movsx eax, cl
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.00440620
mov esi, eax
test esi, esi
jne 0x4413cc
cmp dword [esp + 0x2c], 0
je 0x4413aa
mov byte [edi], 2
movzx eax, word [ebx + 0x16]
cmp dword [esp + 0x24], eax
jb 0x44138f
mov dword [edi + 4], 0xffffffff
mov ax, word [ebx + 0x16]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0043c980
cmp byte [esp + 0x13], 0
mov esi, eax
je 0x4413c4
mov ecx, edi
call fcn.00438150
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret