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

Disassembly:
push esi
mov esi, ecx
push edi
push 0x20
mov ax, word [esi + 0x14]
lea edi, [esi + 0x10]
mov word [esi + 0x68], ax
mov cl, byte [edi + 6]
mov byte [esi + 0x6a], cl
mov dl, byte [edi + 7]
mov byte [esi + 0x6b], dl
mov al, byte [edi + 8]
mov byte [esi + 0x6c], al
mov cl, byte [edi + 9]
mov byte [esi + 0x6d], cl
mov dl, byte [edi + 0xa]
mov byte [esi + 0x6e], dl
mov al, byte [edi + 0xb]
mov byte [esi + 0x6f], al
mov cl, byte [edi + 0xc]
mov byte [esi + 0x70], cl
mov dl, byte [edi + 0xd]
mov byte [esi + 0x71], dl
mov al, byte [edi + 0xe]
mov byte [esi + 0x72], al
mov cl, byte [edi + 0xf]
mov byte [esi + 0x73], cl
mov dx, word [edi + 0x10]
mov word [esi + 0x74], dx
mov ax, word [edi + 0x12]
mov word [esi + 0x76], ax
mov cx, word [edi + 0x14]
lea edx, [edi + 0x16]
lea eax, [esi + 0x7a]
push edx
push eax
mov word [esi + 0x78], cx
call fcn.00513420
mov ecx, dword [edi + 0x38]
add esp, 0xc
mov dword [esi + 0x9c], ecx
mov edx, dword [edi + 0x3c]
mov dword [esi + 0xa0], edx
mov al, byte [esi + 0xc]
test al, al
je 0x402a67
mov ecx, edi
pop edi
pop esi
jmp fcn.0040be50
mov eax, dword [esi + 8]
push ebx
push ebp
mov eax, dword [eax + 0x2c]
sub eax, 0
je 0x402ab4
dec eax
jne 0x402a83
mov ecx, dword [esi + 0x290]
push edi
call fcn.00417440
call fcn.00453eb0
pop ebp
pop ebx
test al, al
jne 0x402ab1
mov byte [esi + 0x16], al
mov byte [esi + 0x17], al
mov byte [esi + 0x18], al
mov byte [esi + 0x19], al
mov byte [esi + 0x1a], al
mov byte [esi + 0x1b], al
mov eax, 0xfffc
and word [esi + 0x14], ax
and word [esi + 0x20], ax
and word [esi + 0x24], ax
pop edi
pop esi
ret
mov ecx, esi
mov byte [esi + 0x408], 0
call fcn.00403810
mov bl, al
mov ebp, 4
test bl, bl
je 0x402c15
mov ecx, dword [esi + 0x400]
test ecx, ecx
jne 0x402ae7
mov byte [esi + 0x408], 1
jmp 0x402c1f
mov edx, dword [esi + 0x138]
test edx, edx
jne 0x402b42
mov eax, dword [0x588f28]
cmp eax, ebp
je 0x402aff
cmp eax, 3
jne 0x402b17
mov eax, dword [0x5a17b4]
test eax, eax
jge 0x402b17
movsx eax, word [esi + 0x17e]
cmp eax, dword [0x5a1774]
jle 0x402b42
mov al, 0x40
cmp byte [esi + 0x18], al
ja 0x402b36
cmp byte [esi + 0x19], al
ja 0x402b36
cmp byte [esi + 0x1a], al
ja 0x402b36
cmp byte [esi + 0x1b], al
ja 0x402b36
dec ecx
mov dword [esi + 0x400], ecx
jmp 0x402b4c
mov dword [esi + 0x400], 0xf
jmp 0x402b4c
mov dword [esi + 0x400], 0
mov eax, dword [esi + 0x400]
test eax, eax
jne 0x402c1f
test edx, edx
jne 0x402bc5
mov al, byte [esi + 0x1dc]
test al, al
jne 0x402bc5
fld dword [esi + 0xcc]
fmul dword [esi + 0x198]
fld dword [esi + 0xc8]
fmul dword [esi + 0x194]
faddp st(1)
fld dword [esi + 0xc4]
fmul dword [esi + 0x190]
faddp st(1)
fcomp qword [0x552540]
fnstsw ax
test ah, 5
jnp 0x402bc5
fld dword [esi + 0x180]
fcomp dword [0x552538]
fnstsw ax
test ah, 5
jnp 0x402bc5
fld dword [esi + 0x180]
fcomp dword [0x552454]
fnstsw ax
and eax, 0x4100
jne 0x402bcc
mov byte [esi + 0x134], 1
mov al, byte [esi + 0x134]
test al, al
jne 0x402c1f
test byte [0x575838], 8
jne 0x402c1f
mov ecx, dword [0x5c4c64]
xor eax, eax
test ecx, ecx
jle 0x402c1f
mov ecx, dword [eax*4 + 0x5c4c54]
cmp dword [ecx + 0x6c], esi
jne 0x402c08
mov dword [ecx + 0xc], ebp
mov ecx, dword [eax*4 + 0x5c4c54]
mov dword [ecx + 0x14], 0xff
mov ecx, dword [0x5c4c64]
inc eax
cmp eax, ecx
jl 0x402beb
jmp 0x402c1f
mov dword [esi + 0x400], 0xf
mov edx, dword [0x588f28]
cmp edx, 5
jne 0x402c4b
mov eax, dword [0x595580]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
add ecx, ecx
sub ecx, eax
mov eax, dword [ecx*8 + 0x5a17c4]
test eax, eax
je 0x402c50
cmp eax, 1
je 0x402c50
jmp 0x402cb5
cmp edx, 7
jne 0x402c6c
mov eax, dword [0x5b2138]
mov ecx, dword [0x57ed38]
cmp eax, ecx
jge 0x402c6c
mov byte [esi + 0x408], 1
mov edx, dword [0x588f28]
cmp edx, 8
jne 0x402cb5
mov al, byte [0x5c4a84]
test al, al
je 0x402cb5
mov al, byte [0x5c4a85]
test al, al
jne 0x402cb5
mov ecx, 0x5c4a60
call fcn.004f3a00
test al, al
je 0x402cae
mov al, 0xc0
mov byte [esi + 0x18], 0
mov byte [esi + 0x1a], al
mov byte [esi + 0x1b], al
mov byte [esi + 0x19], 0
mov byte [esi + 0x16], 0
mov byte [esi + 0x17], 0
jmp 0x402a83
mov byte [esi + 0x408], 1
test byte [0x575838], 8
jne 0x402a83
mov al, byte [esi + 0x408]
test al, al
jne 0x402a77
mov eax, dword [0x5beb68]
cmp dword [eax], 0
jne 0x402ce1
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x402ce5
test bl, bl
je 0x402cef
mov eax, dword [esi + 0x400]
test eax, eax
jne 0x402cfb
mov ecx, edi
call fcn.0040be50
jmp 0x402a83
mov ecx, dword [esi + 8]
push 0x20
mov edx, dword [ecx + 0x30]
mov ebp, dword [edx*4 + 0x5800c0]
mov ax, word [ebp + 4]
mov word [edi + 4], ax
mov cl, byte [ebp + 6]
mov byte [edi + 6], cl
mov dl, byte [ebp + 7]
mov byte [edi + 7], dl
mov al, byte [ebp + 8]
mov byte [edi + 8], al
mov cl, byte [ebp + 9]
mov byte [edi + 9], cl
mov dl, byte [ebp + 0xa]
mov byte [edi + 0xa], dl
mov al, byte [ebp + 0xb]
mov byte [edi + 0xb], al
mov cl, byte [ebp + 0xc]
mov byte [edi + 0xc], cl
mov dl, byte [ebp + 0xd]
mov byte [edi + 0xd], dl
mov al, byte [ebp + 0xe]
mov byte [edi + 0xe], al
mov cl, byte [ebp + 0xf]
mov byte [edi + 0xf], cl
mov dx, word [ebp + 0x10]
mov word [edi + 0x10], dx
mov ax, word [ebp + 0x12]
mov word [edi + 0x12], ax
mov cx, word [ebp + 0x14]
lea edx, [ebp + 0x16]
lea eax, [edi + 0x16]
push edx
push eax
mov word [edi + 0x14], cx
call fcn.00513420
add esp, 0xc
mov ecx, dword [ebp + 0x38]
mov dword [edi + 0x38], ecx
mov edx, dword [ebp + 0x3c]
mov dword [edi + 0x3c], edx
mov eax, dword [0x575838]
test ah, 0x42
jne 0x402e01
mov eax, dword [0x588f28]
cmp eax, 5
je 0x402e01
cmp eax, 6
je 0x402e01
cmp eax, 8
je 0x402e01
cmp eax, 0xb
jne 0x402db1
mov eax, dword [0x5ac0fc]
and eax, 0xff
jmp 0x402dd9
cmp eax, 0xa
je 0x402dcb
cmp eax, 9
je 0x402dcb
mov al, byte [0x5955dc]
test al, al
jne 0x402ddd
mov eax, dword [0x5ac0a8]
jmp 0x402dd9
mov ecx, dword [0x5c463c]
xor eax, eax
mov al, byte [ecx + 0xae2]
test eax, eax
je 0x402e01
movsx eax, byte [esi + 0x16]
neg eax
cmp eax, 0x7f
jge 0x402df9
cmp eax, 0xffffff80
jge 0x402df4
mov eax, 0xffffff80
jmp 0x402dfe
cmp eax, 0x7f
jl 0x402dfe
mov eax, 0x7f
mov byte [esi + 0x16], al
call fcn.00453eb0
test al, al
je 0x402eca
mov eax, dword [0x5c4c64]
xor edi, edi
test eax, eax
jle 0x402eca
mov edx, dword [edi*4 + 0x5c4c54]
cmp dword [edx + 0x6c], esi
je 0x402e33
inc edi
cmp edi, eax
jl 0x402e1d
jmp 0x402eca
test byte [esi + 0x14], 8
je 0x402e79
mov eax, dword [esi + 0x138]
test eax, eax
jne 0x402e79
mov eax, dword [edi*4 + 0x5c4c54]
mov ecx, dword [eax + 8]
cmp ecx, 7
je 0x402eca
test byte [esi + 0x20], 8
je 0x402eca
mov dword [eax + 0x10], ecx
mov eax, dword [edi*4 + 0x5c4c54]
mov dword [eax + 0xc], 7
mov ecx, dword [edi*4 + 0x5c4c54]
mov dword [ecx + 0x14], 0xff
jmp 0x402eca
mov ecx, dword [edi*4 + 0x5c4c54]
lea ebp, [edi*4 + 0x5c4c54]
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
je 0x402ea8
mov dword [ecx + 0xc], eax
mov edx, dword [ebp]
mov dword [edx + 0x10], 0xffffffff
mov eax, dword [ebp]
mov dword [eax + 0x14], 0xff
jmp 0x402eca
test byte [esi + 0x20], 4
je 0x402eca
call fcn.004f8a50
mov ecx, dword [ebp]
mov dword [ecx + 0x14], 0xff
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov dword [edi*4 + 0x595600], eax
mov eax, dword [esi + 0x138]
test eax, eax
je 0x402a83
mov eax, dword [esi + 0x140]
test eax, eax
jne 0x402a83
cmp dword [0x5c4c64], 1
jne 0x402a83
mov dword [0x580074], 0
jmp 0x402a83