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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c4
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x23a]
mov eax, dword [eax + 0x256]
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x5d2ac0
mov dword [esp + 0x10], 0x6bc0cc
xor eax, eax
cmp dword [ebx + 0x32d], 0x2bc
jl 0x5d2ad3
mov eax, 1
cmp byte [ebx + 0x336], 0
je 0x5d2adf
or eax, 2
cmp byte [ebx + 0x335], 0
je 0x5d2aeb
or eax, 4
cmp byte [ebx + 0x337], 0
je 0x5d2af7
or eax, 8
fld dword [ebx + 0x331]
lea edx, [ebx + 0x125]
fstp dword [esp + 0x3c0]
lea esi, [esp + 0x1b8]
fld1
mov dword [esp + 0x3c4], 4
fstp dword [esp + 0x3c8]
mov dword [esp + 0x3cc], eax
call fcn.004011d0
push 0x70c
call fcn.0069e704
add esp, 4
cmp eax, edi
jne 0x5d2c43
call fcn.004b05b0
mov dword [esp + 0x1c], edi
mov esi, edi
mov edx, dword [ebp + 8]
push edx
call fcn.005cff30
cmp esi, edi
je 0x5d2b7b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x246]
mov ecx, dword [eax + 0x484]
add eax, 0x484
mov dword [ecx], esi
lea ecx, [esi + 4]
mov dword [ecx], edi
mov dword [eax], ecx
fldz
mov eax, dword [ebp + 8]
lea edx, [esp + 0x2c]
fstp dword [esp + 0xa1]
push edx
add eax, 0x24a
lea ecx, [esp + 0x28]
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov byte [esp + 0xa4], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
call fcn.005041b0
mov eax, 0x1f4
mov esi, 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
call fcn.004d4360
mov eax, dword [esp + 0x4c]
cmp eax, 8
jl 0x5d2c37
cmp eax, 0xa
jle 0x5d2c75
cmp eax, 0xc
ja 0x5d2c5f
call fcn.004981b0
jmp 0x5d2c61
lea ecx, [esp + 0x1b8]
push ecx
mov edi, eax
call fcn.004a0260
mov esi, eax
mov dword [esp + 0x1c], esi
xor edi, edi
jmp 0x5d2b51
xor eax, eax
mov ecx, dword [esp + 0x50]
imul ecx, eax
shr ecx, 3
add ecx, 3
and ecx, 0xfffffffc
mov dword [esp + 0x68], ecx
push edi
push edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], edi
mov dword [esp + 0xf8], edi
mov dword [esp + 0xe8], edi
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], edi
mov dword [esp + 0xf4], edi
mov dword [esp + 0xfc], edi
mov dword [esp + 0x100], edi
mov dword [esp + 0x104], edi
mov dword [esp + 0x108], edi
mov dword [esp + 0x10c], edi
push edi
lea eax, [esp + 0x58]
lea edi, [esp + 0xc4]
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], esi
mov dword [esp + 0xc4], 0xffffffff
call fcn.004d0d70
lea esi, [esp + 0x114]
mov dword [esp + 0x108], 0x70e2d0
call fcn.004062c0
lea edx, [esp + 0xb8]
xor edi, edi
lea eax, [esp + 0x108]
mov dword [esp + 0x1ae], edi
mov dword [esp + 0x1b2], edx
call fcn.004d80b0
mov eax, esi
push eax
lea eax, [esp + 0x1bc]
call fcn.00407030
mov esi, dword [esp + 0x10]
movzx eax, word [esi]
cmp ax, di
je 0x5d300e
fldz
fst dword [esp + 0xa8]
fst dword [esp + 0xac]
fld dword [0x723df8]
fst dword [esp + 0xb0]
fstp dword [esp + 0xb4]
jmp 0x5d2da2
fldz
lea ecx, [esp + 0x28]
fst dword [esp + 0xc]
push ecx
fstp dword [esp + 0x14]
mov word [esp + 0x2c], ax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x120]
mov word [esp + 0x36], di
push ecx
lea edi, [esp + 0x9c]
lea eax, [esp + 0xb8]
call fcn.005103c0
mov eax, dword [ebx + 0x34d]
test eax, eax
je 0x5d2df2
mov edx, dword [eax]
mov dword [ebx + 0x34d], edx
jmp 0x5d2e04
mov eax, dword [ebx + 0x375]
test eax, eax
je 0x5d2e1c
mov ecx, dword [eax]
mov dword [ebx + 0x375], ecx
fld dword [eax + 4]
push eax
fadd dword [ebx + 0x339]
fstp dword [esp + 0x18]
call fcn.0069d0cc
add esp, 4
jmp 0x5d2e26
fld dword [ebx + 0x339]
fstp dword [esp + 0x14]
mov eax, dword [ebx + 0x351]
test eax, eax
je 0x5d2e3a
mov edx, dword [eax]
mov dword [ebx + 0x351], edx
jmp 0x5d2e4c
mov eax, dword [ebx + 0x379]
test eax, eax
je 0x5d2e64
mov ecx, dword [eax]
mov dword [ebx + 0x379], ecx
fld dword [eax + 4]
push eax
fadd dword [ebx + 0x33d]
fstp dword [esp + 0x1c]
call fcn.0069d0cc
add esp, 4
jmp 0x5d2e6e
fld dword [ebx + 0x33d]
fstp dword [esp + 0x18]
fldz
mov edx, dword [esp + 0x2c]
fst dword [esp + 0x30]
push ecx
fst dword [esp + 0x38]
lea eax, [esp + 0x28]
fst dword [esp + 0x3c]
lea edi, [esp + 0x34]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fst dword [esp + 0x48]
fstp dword [esp + 0x4c]
fld dword [esp + 0x14]
fmul dword [0x6bf9f0]
fst dword [esp + 0x10]
fadd dword [ebx + 0x341]
fstp dword [esp]
call fcn.004def30
fld dword [esp + 0xc]
fld st(0)
fld dword [esp + 0x38]
fmul st(1), st(0)
fld dword [esp + 0x30]
fsubrp st(2)
fxch st(1)
fst dword [esp + 0xc]
fld dword [esp + 0x3c]
fmul st(3), st(0)
fld dword [esp + 0x34]
fsubrp st(4)
fxch st(3)
fst dword [esp + 0x20]
fld dword [0x723780]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 1
jne 0x5d2f01
fld dword [0x72377c]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x5d2f51
fmul st(4), st(0)
fxch st(4)
faddp st(3)
fxch st(2)
fst dword [esp + 0xc]
fxch st(4)
fmulp st(3)
faddp st(2)
fxch st(1)
fst dword [esp + 0x20]
fxch st(2)
fld dword [esp + 0x18]
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 1
jne 0x5d2f39
fld dword [0x72377c]
fcomp st(2)
fnstsw ax
test ah, 1
je 0x5d2f59
fld dword [esp + 0x40]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0xc]
fmul dword [esp + 0x44]
fsubp st(1)
fstp dword [esp + 0x20]
jmp 0x5d2f5f
fstp st(0)
fstp st(3)
fstp st(3)
jmp 0x5d2f1b
fstp st(2)
fstp st(1)
fstp st(0)
push 0x6fc
call fcn.0069e704
add esp, 4
test eax, eax
jne 0x5d2f77
call fcn.004b05b0
jmp 0x5d2fbb
fld dword [esp + 0x48]
movzx edx, word [esi]
sub esp, 0xc
mov edi, eax
fstp dword [esp + 8]
fld dword [esp + 0x2c]
fstp dword [esp + 4]
fld dword [esp + 0x18]
fstp dword [esp]
push edx
call fcn.004a00b0
test eax, eax
je 0x5d2fbb
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x707]
mov dword [edx], eax
add eax, 4
mov dword [eax], 0
mov dword [ecx + 0x707], eax
fld dword [esp + 0x30]
add esi, 2
fld dword [esp + 0x14]
xor edi, edi
fadd st(1), st(0)
fxch st(1)
fstp dword [ebx + 0xc1]
fld dword [esp + 0x34]
fld dword [esp + 0x18]
fadd st(1), st(0)
fxch st(1)
fstp dword [ebx + 0xc6]
fxch st(1)
fstp dword [ebx + 0x339]
fstp dword [ebx + 0x33d]
fld dword [ebx + 0x341]
fadd dword [esp + 0x10]
fstp dword [ebx + 0x341]
movzx eax, word [esi]
test ax, ax
jne 0x5d2da0
mov ecx, dword [ebx + 0x34d]
cmp ecx, edi
je 0x5d303e
mov eax, dword [ebx + 0x361]
cmp eax, edi
jne 0x5d302a
mov dword [ebx + 0x361], ecx
jmp 0x5d3038
cmp dword [eax], edi
je 0x5d3036
mov edi, edi
mov eax, dword [eax]
cmp dword [eax], edi
jne 0x5d3030
mov dword [eax], ecx
mov dword [ebx + 0x34d], edi
mov ecx, dword [ebx + 0x375]
cmp ecx, edi
je 0x5d306e
mov eax, dword [ebx + 0x361]
cmp eax, edi
jne 0x5d305a
mov dword [ebx + 0x361], ecx
jmp 0x5d3068
cmp dword [eax], edi
je 0x5d3066
mov edi, edi
mov eax, dword [eax]
cmp dword [eax], edi
jne 0x5d3060
mov dword [eax], ecx
mov dword [ebx + 0x375], edi
mov ecx, dword [ebx + 0x351]
cmp ecx, edi
je 0x5d309e
mov eax, dword [ebx + 0x365]
cmp eax, edi
jne 0x5d308a
mov dword [ebx + 0x365], ecx
jmp 0x5d3098
cmp dword [eax], edi
je 0x5d3096
mov edi, edi
mov eax, dword [eax]
cmp dword [eax], edi
jne 0x5d3090
mov dword [eax], ecx
mov dword [ebx + 0x351], edi
mov ecx, dword [ebx + 0x379]
cmp ecx, edi
je 0x5d30ce
mov eax, dword [ebx + 0x365]
cmp eax, edi
jne 0x5d30ba
mov dword [ebx + 0x365], ecx
jmp 0x5d30c8
cmp dword [eax], edi
je 0x5d30c6
mov edi, edi
mov eax, dword [eax]
cmp dword [eax], edi
jne 0x5d30c0
mov dword [eax], ecx
mov dword [ebx + 0x379], edi
lea esi, [esp + 0x114]
mov dword [esp + 0x108], 0x70e2d0
call fcn.0050f0d0
mov ecx, dword [esp + 0x1ae]
test ecx, ecx
je 0x5d30f8
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea eax, [esp + 0x114]
call fcn.00406370
lea ecx, [esp + 0xb8]
call fcn.004d0c50
mov eax, dword [esp + 0x24]
push eax
call fcn.0069c8fa
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4