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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x455170]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x88]
mov edx, 0x1e
mov ecx, dword [esp + 0x84]
push ebx
push ebp
mov ebp, dword [esp + 0x98]
mov ebx, eax
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x94]
push esi
test al, al
mov dword [esp + 0x10], ecx
mov esi, 0x2e
mov byte [esp + 0xf], al
cmovne esi, edx
mov dword [esp + 0x2c], esi
push edi
mov edi, dword [esp + 0x90]
test ebx, ebx
je 0x40e4e6
push ebx
call fcn.0040d440
add esp, 4
test edx, edx
ja 0x40e502
jb 0x40e4dd
cmp eax, esi
jae 0x40e502
push 0
push 0x13
jmp 0x40e73b
push ebp
lea eax, [esp + 0x5c]
push eax
push 0
push esi
push ecx
call fcn.0040d4f0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x40e744
cmp byte [esp + 0x13], 0
mov eax, 0x4463c8
push 0
push 4
mov esi, 0x4463c0
push ebx
cmove esi, eax
call fcn.0040d200
add esp, 0xc
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x40e53e
push 0
push 0x13
push ebp
call fcn.0040ba80
add esp, 0xc
cmp dword [esp + 0x18], 0
jmp 0x40eabd
push edi
call fcn.0040e2d0
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x40e55c
push ebx
call fcn.0040d250
add esp, 4
movzx eax, ax
jmp 0x40e55e
xor eax, eax
push ebx
mov word [edi + 8], ax
call fcn.0040d250
push ebx
mov word [edi + 0xa], ax
call fcn.0040d250
push ebx
mov word [edi + 0xc], ax
call fcn.0040d250
movzx eax, ax
push ebx
mov dword [edi + 0x10], eax
call fcn.0040d250
xorps xmm0, xmm0
movzx esi, ax
push ebx
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x68], 0xffffffff
call fcn.0040d250
movzx ecx, ax
mov eax, ecx
shr eax, 9
add eax, 0x50
mov dword [esp + 0x5c], eax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov dword [esp + 0x54], ecx
dec eax
mov ecx, esi
mov dword [esp + 0x58], eax
mov eax, ecx
shr eax, 0xb
mov dword [esp + 0x50], eax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0x3f
add ecx, ecx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], ecx
call fcn.0042be51
push ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
call fcn.0040d2b0
push ebx
mov dword [edi + 0x20], eax
call fcn.0040d2b0
push ebx
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
call fcn.0040d2b0
push ebx
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], 0
call fcn.0040d250
movzx eax, ax
push ebx
mov dword [esp + 0x4c], eax
call fcn.0040d250
add esp, 0x2c
movzx eax, ax
cmp byte [esp + 0x13], 0
mov dword [esp + 0x1c], eax
je 0x40e667
xor esi, esi
xorps xmm0, xmm0
xor eax, eax
movlpd qword [esp + 0x24], xmm0
mov ecx, dword [esp + 0x24]
mov word [edi + 0x48], ax
mov dword [edi + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], esi
mov dword [edi + 0x44], esi
jmp 0x40e6a0
push ebx
call fcn.0040d250
movzx esi, ax
push ebx
mov dword [esp + 0x34], esi
call fcn.0040d250
movzx eax, ax
push ebx
mov dword [edi + 0x44], eax
call fcn.0040d250
push ebx
mov word [edi + 0x48], ax
call fcn.0040d2b0
push ebx
mov dword [edi + 0x4c], eax
call fcn.0040d2b0
add esp, 0x14
mov ecx, eax
xor eax, eax
mov dword [edi + 0x50], ecx
push ebx
mov dword [edi + 0x54], eax
call fcn.0040d5e0
add esp, 4
test al, al
jne 0x40e6ca
push 0
push 0x14
push ebp
call fcn.0040ba80
add esp, 0xc
cmp dword [esp + 0x18], 0
jmp 0x40eabd
movzx eax, word [edi + 0xc]
test al, 1
je 0x40e6e6
test al, 0x40
mov ecx, 1
mov eax, 0xffff
cmove eax, ecx
movzx eax, ax
jmp 0x40e6e8
xor eax, eax
mov ecx, dword [esp + 0x20]
mov word [edi + 0x5a], ax
mov eax, dword [esp + 0x1c]
movzx edx, ax
movzx eax, si
mov esi, dword [esp + 0x18]
add eax, edx
movzx ecx, cx
add ecx, eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [esp + 0x24], ecx
push ebx
test esi, esi
je 0x40e75c
call fcn.0040d440
add esp, 4
test edx, edx
ja 0x40e77c
jb 0x40e737
cmp eax, dword [esp + 0x24]
jae 0x40e77c
push 0xc
push 0x15
push ebp
call fcn.0040ba80
add esp, 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0041dea9
add esp, 0x7c
ret
call fcn.0040d1d0
push ebp
push 0
push 0
push dword [esp + 0x34]
push dword [esp + 0x28]
call fcn.0040d4f0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x40e744
mov eax, dword [esp + 0x20]
test ax, ax
je 0x40e7dc
push ebp
push 1
push eax
push dword [esp + 0x20]
push ebx
call fcn.0040fd00
add esp, 0x14
mov dword [edi + 0x38], eax
test eax, eax
jne 0x40e7b8
push ebp
call fcn.0040ba30
add esp, 4
cmp eax, 0x11
jne 0x40eabb
push 0xc
push 0x15
jmp 0x40eab2
mov ecx, 0x800
test word [edi + 0xc], cx
je 0x40e7dc
push 2
push eax
call fcn.00413dc0
add esp, 8
cmp eax, 5
jne 0x40e7dc
push 0xd
push 0x15
jmp 0x40eab2
mov ecx, dword [esp + 0x1c]
test cx, cx
je 0x40e855
push ebp
push 0
movzx eax, cx
push eax
push dword [esp + 0x20]
push ebx
call fcn.0040fbf0
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x40eabb
cmp byte [esp + 0x13], 0
lea eax, [edi + 0x3c]
push ebp
push eax
mov edx, 0x100
mov eax, 0x200
cmovne eax, edx
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call fcn.004100c0
add esp, 0x14
push dword [esp + 0x20]
test al, al
jne 0x40e842
call fcn.004219fc
add esp, 4
jmp 0x40eabb
call fcn.004219fc
add esp, 4
cmp byte [esp + 0x13], 0
je 0x40e855
mov byte [edi + 4], 1
mov eax, dword [esp + 0x2c]
test ax, ax
je 0x40e89e
push ebp
push 0
push eax
push dword [esp + 0x20]
push ebx
call fcn.0040fd00
add esp, 0x14
mov dword [edi + 0x40], eax
test eax, eax
je 0x40eabb
mov ecx, 0x800
test word [edi + 0xc], cx
je 0x40e89e
push 2
push eax
call fcn.00413dc0
add esp, 8
cmp eax, 5
jne 0x40e89e
push 0xd
push 0x15
jmp 0x40eab2
push dword [edi + 0x38]
push 0x7075
push edi
call fcn.0040e3a0
push dword [edi + 0x40]
mov dword [edi + 0x38], eax
push 0x6375
push edi
call fcn.0040e3a0
add esp, 0x18
mov dword [edi + 0x40], eax
cmp dword [edi + 0x30], 0xffffffff
jne 0x40e8cf
cmp dword [edi + 0x34], 0
je 0x40e8ef
cmp dword [edi + 0x28], 0xffffffff
jne 0x40e8db
cmp dword [edi + 0x2c], 0
je 0x40e8ef
cmp dword [edi + 0x50], 0xffffffff
jne 0x40eaa1
cmp dword [edi + 0x54], 0
jne 0x40eaa1
cmp byte [esp + 0x13], 0
mov ecx, 0x100
push ebp
mov eax, 0x200
cmovne eax, ecx
push eax
push 0
push 1
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x3c]
call fcn.0040fec0
mov ecx, eax
add esp, 0x18
test ecx, ecx
je 0x40eabb
movzx eax, word [esp + 0x18]
cdq
push edx
push eax
push ecx
call fcn.0040d470
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40e942
push eax
push 0xe
jmp 0x40eab2
cmp dword [edi + 0x30], 0xffffffff
jne 0x40e95f
cmp dword [edi + 0x34], 0
jne 0x40e95f
push eax
call fcn.0040d310
add esp, 4
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], edx
jmp 0x40e973
cmp byte [esp + 0x13], 0
je 0x40e977
push 0
push 8
push eax
call fcn.0040d8e0
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp dword [edi + 0x28], 0xffffffff
jne 0x40e992
cmp dword [edi + 0x2c], 0
jne 0x40e992
push eax
call fcn.0040d310
add esp, 4
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
cmp byte [esp + 0x13], 0
jne 0x40e9cf
cmp dword [edi + 0x50], 0xffffffff
jne 0x40e9b7
cmp dword [edi + 0x54], 0
jne 0x40e9b7
push dword [esp + 0x14]
call fcn.0040d310
add esp, 4
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], edx
cmp dword [edi + 0x44], 0xffff
jne 0x40e9cf
push dword [esp + 0x14]
call fcn.0040d2b0
add esp, 4
mov dword [edi + 0x44], eax
push dword [esp + 0x14]
call fcn.0040d1b0
add esp, 4
test al, al
jne 0x40ea95
movzx eax, word [esp + 0x18]
mov byte [esp + 0x1c], 1
cmp eax, 0x18
je 0x40ea27
cmp eax, 0x1c
jne 0x40ea7d
push 0
push 0x18
push dword [esp + 0x1c]
call fcn.0040d8a0
push dword [esp + 0x20]
call fcn.0040d2b0
mov ecx, dword [esp + 0x2c]
xor edx, edx
add esp, 0x10
movzx ecx, cl
cmp dword [edi + 0x44], eax
cmovne ecx, edx
mov dword [esp + 0x1c], ecx
push 0
push 0
push dword [esp + 0x1c]
call fcn.0040d8a0
push dword [esp + 0x20]
call fcn.0040d310
add esp, 0x10
cmp dword [edi + 0x30], eax
jne 0x40ea7d
cmp dword [edi + 0x34], edx
jne 0x40ea7d
push dword [esp + 0x14]
call fcn.0040d310
add esp, 4
cmp dword [edi + 0x28], eax
jne 0x40ea7d
cmp dword [edi + 0x2c], edx
jne 0x40ea7d
push dword [esp + 0x14]
call fcn.0040d310
add esp, 4
cmp dword [edi + 0x50], eax
jne 0x40ea7d
cmp dword [edi + 0x54], edx
jne 0x40ea7d
cmp byte [esp + 0x1c], 0
jne 0x40ea95
push 0xe
push 0x15
push ebp
call fcn.0040ba80
push dword [esp + 0x20]
call fcn.0040d1d0
add esp, 0x10
jmp 0x40eabb
push dword [esp + 0x14]
call fcn.0040d1d0
add esp, 4
push ebx
call fcn.0040d5e0
add esp, 4
test al, al
jne 0x40ead1
push 0
push 0x14
push ebp
call fcn.0040ba80
add esp, 0xc
test esi, esi
jne 0x40e744
push ebx
call fcn.0040d1d0
add esp, 4
jmp 0x40e744
test esi, esi
jne 0x40eade
push ebx
call fcn.0040d1d0
add esp, 4
cmp dword [edi + 0x54], 0x7fffffff
jb 0x40eaf8
ja 0x40eaef
cmp dword [edi + 0x50], 0xffffffff
jbe 0x40eaf8
push 0x1b
push 4
jmp 0x40e73b
cmp dword [edi + 0x10], 0x63
jne 0x40ebfd
push 0
push 0x300
push 0
push 0x9901
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x3c]
call fcn.0040fec0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40ec48
mov cx, word [esp + 0x18]
cmp cx, 7
jb 0x40ec48
movzx eax, cx
cdq
push edx
push eax
push esi
call fcn.0040d470
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40eb56
push eax
push 0x14
jmp 0x40e73b
push esi
mov bl, 1
call fcn.0040d250
movzx eax, ax
add esp, 4
sub eax, 1
je 0x40eb74
sub eax, 1
jne 0x40ec30
xor bl, bl
push 0
push 2
push esi
call fcn.0040d200
mov ecx, 0x4541
add esp, 0xc
cmp word [eax], cx
jne 0x40ec30
push esi
call fcn.0040d3f0
movzx eax, al
add esp, 4
sub eax, 1
je 0x40ebbc
sub eax, 1
je 0x40ebb5
sub eax, 1
jne 0x40ec30
mov eax, 0x103
jmp 0x40ebc1
mov eax, 0x102
jmp 0x40ebc1
mov eax, 0x101
cmp word [esp + 0x18], 7
je 0x40ebe1
push 0xe
push 0x15
push ebp
call fcn.0040ba80
push esi
call fcn.0040d1d0
add esp, 0x10
jmp 0x40e744
push esi
mov byte [edi + 6], bl
mov word [edi + 0x5a], ax
call fcn.0040d250
movzx eax, ax
push esi
mov dword [edi + 0x10], eax
call fcn.0040d1d0
add esp, 8
push dword [edi + 0x3c]
call fcn.00410380
mov ecx, dword [esp + 0x8c]
add esp, 4
mov dword [edi + 0x3c], eax
mov edx, 0
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
adc edx, edx
pop ebx
xor ecx, esp
call fcn.0041dea9
add esp, 0x7c
ret
push 0
push 0x18
push ebp
call fcn.0040ba80
push esi
call fcn.0040d1d0
add esp, 0x10
jmp 0x40e744
push 0xe
jmp 0x40e739