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

Disassembly:
sub esp, 0xa0
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, edx
mov dword [esp + 0x70], ebx
push edi
mov edi, ecx
mov dword [esp + 0x78], ebx
lea edx, [esp + 0x38]
mov dword [esp + 0x7c], ebx
mov ecx, esi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
call fcn.0040d547
test eax, eax
jne 0x40efe3
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 2
pop ebp
cmp edx, ebp
jne 0x40eb46
cmp ecx, ebx
jne 0x40eb46
jmp 0x40eb19
mov eax, dword [esp + 0x28]
mov ecx, esi
or eax, dword [esp + 0x2c]
je 0x40eb2d
call fcn.0040d6db
test eax, eax
jne 0x40efe3
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.0040d547
test eax, eax
je 0x40eb00
jmp 0x40efe3
lea edx, [esp + 0x38]
call fcn.0040d547
test eax, eax
jne 0x40efe3
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
cmp edx, 3
jne 0x40ebc5
cmp ecx, ebx
jne 0x40ebc5
lea ecx, [esp + 0x84]
call fcn.0040d40e
push ecx
mov eax, ecx
mov edx, esi
mov ecx, dword [esp + 0xb8]
push eax
push dword [edi + 0x34]
push dword [edi + 0x30]
push 8
push dword [esp + 0xcc]
call fcn.0040e805
mov ecx, dword [esp + 0xa0]
mov ebx, eax
mov eax, dword [esp + 0xd4]
add esp, 0x18
mov dword [eax], ecx
lea ecx, [esp + 0x84]
call fcn.0040d431
test ebx, ebx
je 0x40eba8
mov eax, ebx
jmp 0x40efe3
lea edx, [esp + 0x38]
mov ecx, esi
call fcn.0040d547
test eax, eax
jne 0x40efe3
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
mov edx, dword [esp + 0x38]
cmp edx, 4
jne 0x40ec27
cmp ecx, ebx
jne 0x40ec27
push ecx
lea eax, [esp + 0x68]
mov edx, esi
push eax
mov eax, dword [esp + 0xc4]
lea ebx, [edi + 0x38]
push ebx
mov ecx, edi
push dword [eax]
push dword [esp + 0xc8]
push 0x40000000
call fcn.0040e6fc
add esp, 0x18
test eax, eax
jne 0x40efe3
mov eax, dword [edi + 0x30]
lea edx, [esp + 0x38]
add dword [ebx], eax
mov ecx, esi
mov eax, dword [edi + 0x34]
adc dword [ebx + 4], eax
call fcn.0040d547
test eax, eax
jne 0x40efe3
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, edx
or eax, ecx
jne 0x40ec34
xor eax, eax
jmp 0x40efe3
cmp edx, 5
jne 0x40efe0
xor eax, eax
cmp ecx, eax
jne 0x40efe0
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], eax
call fcn.0040d67d
test eax, eax
jne 0x40efe3
mov eax, dword [esp + 0x18]
mov dword [edi + 0x40], eax
jmp 0x40efbd
mov ebx, dword [esp + 0x38]
mov eax, ebx
or eax, dword [esp + 0x3c]
je 0x40efd2
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.0040d547
test eax, eax
jne 0x40efe3
mov eax, dword [esi + 4]
xor edx, edx
cmp dword [esp + 0x2c], edx
ja 0x40efe0
mov ecx, dword [esp + 0x28]
jb 0x40ecb6
cmp ecx, eax
ja 0x40efe0
cmp dword [esp + 0x3c], edx
ja 0x40efb6
cmp ebx, 0x100
jae 0x40efb6
sub ebx, 0xe
je 0x40ef36
sub ebx, 1
je 0x40ef18
sub ebx, ebp
je 0x40edb8
sub ebx, 1
je 0x40edb2
sub ebx, ebp
je 0x40ed8c
sub ebx, 1
jne 0x40efb6
lea ebx, [edi + 0x54]
mov ecx, ebx
call fcn.0040d3e5
mov edx, dword [esp + 0x18]
push ecx
push ebx
mov ecx, esi
call fcn.0040d7cb
pop ecx
pop ecx
test eax, eax
jne 0x40efe3
mov eax, dword [esi + 4]
test eax, eax
je 0x40efe0
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
test cl, cl
mov dword [esi], eax
mov ecx, esi
je 0x40ed7b
lea edx, [esp + 0x60]
call fcn.0040d67d
test eax, eax
jne 0x40efe3
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x60]
cmp ecx, dword [eax]
jae 0x40efe0
mov edx, dword [esp + 0xb8]
mov eax, dword [edx + ecx*8]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + ecx*8 + 4]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x18]
push ecx
push ebx
call fcn.0040d879
pop ecx
jmp 0x40ef28
push ecx
lea ecx, [edi + 0x5c]
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0xc0]
push esi
call fcn.0040e928
add esp, 0x10
jmp 0x40ef29
push ecx
lea ecx, [edi + 0x64]
jmp 0x40ed90
test eax, eax
je 0x40efe0
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov dl, byte [eax]
inc eax
mov byte [esp + 0x16], dl
mov dword [esp + 0x34], eax
mov dword [esi], eax
test dl, dl
jne 0x40eddc
lea ebx, [ecx - 1]
jmp 0x40ee14
lea edx, [esp + 0x58]
mov ecx, esi
call fcn.0040d67d
test eax, eax
jne 0x40efe3
mov eax, dword [esp + 0xbc]
mov ebx, dword [esp + 0x58]
cmp ebx, dword [eax]
jae 0x40efe0
mov ecx, dword [esp + 0xb8]
mov eax, dword [ecx + ebx*8]
mov ebx, dword [ecx + ebx*8 + 4]
mov dword [esp + 0x34], eax
test bl, 1
jne 0x40efe0
mov eax, dword [esp + 0x18]
lea eax, [eax*4 + 4]
push eax
push 0x603458
call dword [0x603458]
mov dword [edi + 0x74], eax
pop ecx
pop ecx
test eax, eax
je 0x40f557
test ebx, ebx
jne 0x40ee4b
xor eax, eax
mov edi, eax
jmp 0x40ee72
push ebx
push 0x603458
call dword [0x603458]
mov dword [edi + 0x78], eax
pop ecx
pop ecx
test eax, eax
je 0x40f557
push ebx
push dword [esp + 0x38]
push eax
call fcn.0051c650
add esp, 0xc
mov edx, dword [edi + 0x74]
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x78]
and dword [edx], ecx
add edx, 4
mov dword [esp + 0x24], eax
cmp dword [esp + 0x44], ecx
jne 0x40ee9c
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0x10
jmp 0x40eefc
cmp ebx, ebp
jb 0x40efe0
cmp byte [eax + ebx - 2], cl
jne 0x40efe0
cmp byte [eax + ebx - 1], cl
jne 0x40efe0
cmp ecx, ebx
je 0x40efe0
add ecx, eax
xor eax, eax
cmp word [ecx], ax
mov eax, dword [esp + 0x24]
je 0x40eeda
xor eax, eax
add ecx, ebp
cmp word [ecx], ax
jne 0x40eecf
mov eax, dword [esp + 0x24]
sub ecx, eax
add ecx, ebp
mov eax, ecx
shr eax, 1
mov dword [edx], eax
add edx, 4
sub dword [esp + 0x44], 1
mov eax, dword [esp + 0x24]
jne 0x40eeb8
xor edx, edx
cmp ecx, ebx
push 0x10
pop eax
cmove eax, edx
test eax, eax
jne 0x40efe3
cmp byte [esp + 0x16], al
jne 0x40efbd
sub dword [esi + 4], ebx
add dword [esi], ebx
jmp 0x40efbd
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
call fcn.0040d757
pop ecx
test eax, eax
jne 0x40efe3
jmp 0x40efbd
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
mov edx, ebx
mov ecx, esi
call fcn.0040d757
pop ecx
test eax, eax
jne 0x40efe3
mov eax, dword [esp + 0x48]
xor edx, edx
and dword [esp + 0x1c], edx
mov cl, dl
mov dword [esp + 0x34], eax
mov byte [esp + 0x16], cl
test ebx, ebx
je 0x40efae
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x54], edx
test edx, edx
jne 0x40ef7e
mov cl, byte [eax]
push 8
mov byte [esp + 0x1a], cl
pop edx
dec edx
movzx eax, cl
mov cl, dl
shr eax, cl
mov ecx, dword [esp + 0x34]
and eax, 1
add ebp, eax
cmp dword [esp + 0x54], 0
lea eax, [ecx + 1]
cmovne eax, ecx
mov cl, byte [esp + 0x16]
mov dword [esp + 0x34], eax
sub ebx, 1
jne 0x40ef6d
push 2
mov dword [esp + 0x20], ebp
pop ebp
xor eax, eax
mov dword [esp + 0x5c], eax
jmp 0x40efbd
sub eax, ecx
add dword [esi], ecx
mov dword [esi + 4], eax
lea edx, [esp + 0x38]
mov ecx, esi
call fcn.0040d547
test eax, eax
je 0x40ec76
jmp 0x40efe3
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x64]
je 0x40f003
push 0x10
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
je 0x40f014
mov ecx, esi
call fcn.0040d6db
test eax, eax
jne 0x40efe3
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.0040d547
test eax, eax
je 0x40efee
jmp 0x40efe3
xor eax, eax
mov byte [esp + 0x14], 0x80
mov dword [esp + 0x54], eax
mov ebx, eax
mov dword [esp + 0x24], eax
mov ebp, eax
mov dword [esp + 0x1c], eax
xorps xmm0, xmm0
mov dword [esp + 0x34], eax
mov esi, 0x603458
mov byte [esp + 0x16], al
mov byte [esp + 0x17], al
mov byte [esp + 0x15], al
mov eax, dword [edi + 4]
movlpd qword [esp + 0x28], xmm0
lea eax, [eax*4 + 4]
push eax
push esi
call dword [0x603458]
mov dword [edi + 0x6c], eax
pop ecx
pop ecx
test eax, eax
je 0x40f554
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x40f074
mov dword [edi + 0x70], eax
jmp 0x40f08c
shl eax, 2
push eax
push esi
call dword [0x603458]
mov dword [edi + 0x70], eax
pop ecx
pop ecx
test eax, eax
je 0x40f554
mov eax, dword [edi + 0x40]
lea eax, [eax*8 + 8]
push eax
push esi
call dword [0x603458]
mov dword [edi + 0x44], eax
pop ecx
pop ecx
test eax, eax
je 0x40f554
mov eax, dword [edi + 0x40]
add eax, 7
shr eax, 3
test eax, eax
jne 0x40f0bf
xor edx, edx
mov dword [edi + 0x48], edx
jmp 0x40f0d6
push eax
push esi
call dword [0x603458]
mov dword [edi + 0x48], eax
pop ecx
pop ecx
test eax, eax
je 0x40f554
xor edx, edx
mov esi, dword [edi + 0x40]
test esi, esi
jne 0x40f0e5
mov dword [edi + 0x4c], edx
mov dword [edi + 0x50], edx
jmp 0x40f123
lea eax, [esi + 7]
shr eax, 3
push eax
push 0x603458
call dword [0x603458]
mov dword [edi + 0x4c], eax
pop ecx
pop ecx
test eax, eax
je 0x40f11a
mov eax, esi
shl eax, 2
push eax
push 0x603458
call dword [0x603458]
mov dword [edi + 0x50], eax
pop ecx
pop ecx
test eax, eax
jne 0x40f121
push 2
jmp 0x40efe2
xor edx, edx
mov eax, dword [esp + 0x80]
test eax, eax
je 0x40f15d
dec eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x7c]
mov cl, byte [eax]
inc eax
mov byte [esp + 0x16], cl
mov dword [esp + 0x7c], eax
test cl, cl
je 0x40f14d
mov ebp, eax
jmp 0x40f15d
mov ebp, dword [esp + 0x68]
add ebp, 7
mov dword [esp + 0x34], eax
shr ebp, 3
add ebp, eax
mov esi, edx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x18], ebx
jbe 0x40f287
mov al, byte [esp + 0x14]
mov dword [esp + 0x20], edx
test al, al
jne 0x40f1b2
mov eax, dword [edi + 0x48]
lea ecx, [esi - 1]
mov dl, byte [esp + 0x17]
shr ecx, 3
mov byte [esp + 0x14], 0x80
mov byte [ecx + eax], dl
mov eax, dword [edi + 0x4c]
mov dl, byte [esp + 0x15]
mov byte [ecx + eax], dl
xor eax, eax
mov edx, dword [esp + 0x20]
mov byte [esp + 0x17], al
mov byte [esp + 0x15], al
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x4c]
mov dword [eax + esi*8], edx
mov dword [eax + esi*8 + 4], ecx
xor ecx, ecx
mov eax, dword [edi + 0x50]
mov dword [eax + esi*4], ecx
cmp dword [esp + 0x48], ecx
je 0x40f2a5
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [esp + 0x48]
shr eax, 3
test byte [eax + ecx], dl
je 0x40f2a5
cmp dword [esp + 0x5c], 0
je 0x40f22e
mov ecx, dword [esp + 0x54]
mov edx, 0x80
mov esi, dword [esp + 0x5c]
and ecx, 7
sar edx, cl
mov ecx, dword [esp + 0x54]
mov eax, ecx
shr eax, 3
test byte [eax + esi], dl
mov esi, dword [esp + 0x44]
jne 0x40f227
mov al, byte [esp + 0x17]
or al, byte [esp + 0x14]
mov byte [esp + 0x17], al
inc ecx
mov dword [esp + 0x54], ecx
jmp 0x40f23a
mov al, byte [esp + 0x17]
or al, byte [esp + 0x14]
mov byte [esp + 0x17], al
cmp dword [esp + 0x24], 0
jne 0x40f334
mov eax, dword [edi + 0x70]
or dword [eax + esi*4], 0xffffffff
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0x14]
inc esi
shr al, 1
mov dword [esp + 0x44], esi
mov byte [esp + 0x14], al
cmp esi, dword [esp + 0x18]
jb 0x40f181
mov eax, dword [edi + 0x48]
lea ecx, [esi - 1]
mov dl, byte [esp + 0x17]
shr ecx, 3
mov byte [ecx + eax], dl
mov eax, dword [edi + 0x4c]
mov dl, byte [esp + 0x15]
mov byte [ecx + eax], dl
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x4c]
mov dword [eax + esi*8], edx
mov dword [eax + esi*8 + 4], ecx
jne 0x40efe0
jmp 0x40f52e
cmp dword [esp + 0x24], 0
jne 0x40f334
cmp ebx, dword [edi + 4]
jae 0x40efe0
mov eax, dword [edi + 0x6c]
mov dword [eax + ebx*4], esi
xor eax, eax
inc eax
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x1c], eax
je 0x40f2e6
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x6c]
call fcn.0040d67d
test eax, eax
jne 0x40efe3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x40f334
mov eax, dword [edi + 0x20]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x4c]
movzx ecx, byte [eax + ebx]
mov eax, dword [edi + 0x1c]
add ecx, dword [eax + ebx*4]
mov eax, dword [edi + 0x24]
add edx, dword [eax + ecx*8]
mov dword [esp + 0x20], edx
adc esi, dword [eax + ecx*8 + 4]
cmp esi, dword [eax + ecx*8 + 4]
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x44]
jb 0x40efe0
ja 0x40f32e
cmp edx, dword [eax + ecx*8]
jb 0x40efe0
inc ebx
jmp 0x40f2b0
cmp dword [esp + 0x48], 0
mov eax, dword [edi + 0x70]
mov dword [eax + esi*4], ebx
je 0x40f35f
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [esp + 0x48]
shr eax, 3
test byte [eax + ecx], dl
jne 0x40f24c
sub dword [esp + 0x24], 1
jne 0x40f46f
mov eax, dword [edi + 0x20]
movzx ecx, byte [eax + ebx]
mov eax, dword [edi + 0x1c]
add ecx, dword [eax + ebx*4]
mov eax, dword [edi + 0x24]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x6c]
mov eax, dword [eax + ebx*4]
mov esi, dword [ecx + eax*8]
mov dword [esp + 0x60], esi
mov esi, dword [ecx + eax*8 + 4]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
sbb ecx, esi
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x44]
cmp dword [esp + 0x58], ecx
jb 0x40efe0
ja 0x40f3c3
cmp edx, eax
jb 0x40efe0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
add eax, edx
mov dword [esp + 0x20], eax
adc ecx, dword [esp + 0x58]
mov dword [esp + 0x4c], ecx
cmp ecx, dword [esp + 0x58]
jb 0x40efe0
ja 0x40f3ed
cmp eax, edx
jb 0x40efe0
cmp dword [esp + 0x1c], 1
jne 0x40f421
cmp dword [edi + 0xc], 0
je 0x40f421
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [edi + 0xc]
shr eax, 3
test byte [eax + ecx], dl
je 0x40f421
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x50]
mov eax, dword [eax + ebx*4]
mov dword [ecx + esi*4], eax
jmp 0x40f45d
cmp byte [esp + 0x16], 0
jne 0x40f435
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40f469
test byte [eax], 0x80
je 0x40f469
movzx ecx, byte [ebp + 3]
movzx eax, byte [ebp + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp]
shl ecx, 8
or ecx, eax
mov eax, dword [edi + 0x50]
add ebp, 4
mov dword [eax + esi*4], ecx
mov al, byte [esp + 0x15]
or al, byte [esp + 0x14]
mov byte [esp + 0x15], al
inc ebx
jmp 0x40f24c
lea edx, [esp + 0x28]
lea ecx, [esp + 0x74]
call fcn.0040d547
test eax, eax
jne 0x40efe3
mov edx, dword [esp + 0x20]
add edx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
adc eax, dword [esp + 0x2c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x2c]
jb 0x40efe0
ja 0x40f4b2
cmp edx, dword [esp + 0x28]
jb 0x40efe0
cmp byte [esp + 0x16], 0
jne 0x40f4ce
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x40f250
test byte [ecx], 0x80
je 0x40f250
movzx ecx, byte [ebp + 3]
movzx eax, byte [ebp + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp]
shl ecx, 8
add ebp, 4
or ecx, eax
mov eax, dword [edi + 0x50]
mov dword [eax + esi*4], ecx
mov al, byte [esp + 0x14]
or byte [esp + 0x15], al
jmp 0x40f254
cmp dword [esp + 0x6c], 0
je 0x40efe0
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x6c]
call fcn.0040d67d
test eax, eax
jne 0x40efe3
cmp dword [esp + 0x1c], eax
jne 0x40efe0
inc ebx
mov eax, dword [edi + 0x6c]
mov dword [eax + ebx*4], esi
cmp ebx, dword [edi + 4]
jb 0x40f503
cmp dword [esp + 0x6c], 0
je 0x40ec2d
mov eax, dword [esp + 0x70]
neg eax
sbb eax, eax
and eax, 0x10
jmp 0x40efe3
push 2
pop ebp
mov eax, ebp
jmp 0x40efe3