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

Disassembly:
sub esp, 0xd8
mov edx, dword [esp + 0xdc]
mov ecx, dword [0x87fe68]
mov ecx, dword [ecx + 0x34]
mov eax, edx
and eax, 0xffff
imul eax, eax, 0x6c
push ebx
push ebp
lea ebp, [ecx + eax]
mov ecx, dword [0x6571d4]
mov dword [esp + 0x60], ecx
mov ecx, dword [0x6571d8]
mov dword [esp + 0x64], ecx
mov ecx, dword [0x6571dc]
mov dword [esp + 0x68], ecx
mov ecx, dword [0x6571e0]
push esi
mov dword [esp + 0x70], ecx
push edi
mov ecx, 0x1c
lea esi, [esp + 0x68]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x87fef4]
mov bl, byte [ecx + 1]
mov dword [esp + 0x28], eax
or eax, 0xffffffff
test bl, bl
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x12], 0
je 0x43861f
cmp edx, eax
jne 0x438618
mov edx, dword [ecx + 8]
mov dword [esp + 0x3c], edx
jmp 0x43861f
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x87fef4]
mov dl, byte [ecx + 1]
test dl, dl
je 0x438895
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
je 0x438895
mov edx, dword [0x87ff00]
mov ebp, dword [edx + 0x34]
mov edx, dword [0x87b7b4]
mov edi, eax
and edi, 0xffff
mov esi, edi
imul esi, esi, 0x724
mov ecx, dword [esi + ebp + 0x58]
mov ebx, dword [esi + ebp + 0x18]
mov eax, dword [esi + ebp + 0x2c]
add esi, ebp
and ecx, 0xffff
shl ecx, 5
cmp ebx, 0xffffffff
mov ecx, dword [ecx + edx + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x13], 0
je 0x438623
push 0
push 0
push 1
call fcn.004303f0
fstp dword [esp + 0x20]
mov edx, dword [0x87ff00]
mov eax, dword [edx + 0x34]
add esp, 0xc
imul edi, edi, 0x724
mov edi, dword [edi + eax + 0x50]
jmp 0x4386c0
fstp st(0)
jmp 0x4386c0
cmp edi, 0xffffffff
mov ebp, edi
je 0x438828
mov edx, dword [0x87fe60]
mov ecx, edi
mov edi, dword [edx + 0x34]
and ecx, 0xffff
imul ecx, ecx, 0x138
mov al, byte [ecx + edi + 0x127]
add ecx, edi
test al, al
mov edi, dword [ecx + 8]
je 0x4386c0
mov bl, byte [ecx + 0x60]
test bl, bl
je 0x438732
mov eax, dword [esp + 0x20]
test byte [eax + 4], 0x40
jne 0x43871d
cmp word [ecx + 0x76], 0xd2
jge 0x43871d
fld dword [0x672c84]
xor edx, edx
mov dword [esp + 0x1c], 0x3f333333
jmp 0x438745
fld dword [0x672c78]
mov edx, 1
mov dword [esp + 0x1c], 0
jmp 0x438745
fld dword [0x67310c]
mov edx, 2
mov dword [esp + 0x1c], 0x3ecccccd
fcom dword [ecx + 0x11c]
fnstsw ax
test ah, 0x41
jne 0x4386b4
fdiv dword [ecx + 0x11c]
fld dword [0x672c1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x438773
fstp st(0)
fld dword [0x672c1c]
fld dword [esp + 0x14]
fcomp dword [0x672cdc]
fnstsw ax
test ah, 0x41
jne 0x43878a
fld dword [esp + 0x14]
jmp 0x438790
fld dword [0x672cdc]
movsx eax, word [ecx + 0x76]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul dword [0x673198]
fld dword [0x672afc]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4387b9
fstp st(0)
fld dword [0x672afc]
fld dword [0x672c1c]
mov al, byte [ecx + 0x12e]
test al, al
fsub st(1)
fmul st(2)
fmul st(3)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x18]
fstp st(0)
fstp st(0)
fstp st(0)
je 0x4387eb
fld dword [esp + 0x18]
fadd dword [0x672c1c]
fstp dword [esp + 0x18]
test bl, bl
je 0x4387f4
mov byte [esp + 0x13], 1
mov ecx, dword [ecx + 0x18]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x3c]
movsx edx, dx
push ebp
push eax
shl edx, 5
push ecx
lea eax, [esp + edx + 0x78]
push eax
call fcn.004383f0
add esp, 0x14
test al, al
je 0x4386c0
mov byte [esp + 0x12], 1
jmp 0x4386c0
mov al, byte [esp + 0x13]
test al, al
je 0x43861f
mov esi, dword [esi + 0x18]
mov edx, dword [0x85ff50]
mov eax, dword [edx + 0x34]
and esi, 0xffff
lea ecx, [esi + esi*2]
mov ecx, dword [eax + ecx*4 + 8]
movsx edx, word [ecx + 0x42a]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], edx
push 0xffffffffffffffff
push 0xffffffffffffffff
fild dword [esp + 0x28]
push ecx
lea ecx, [esp + 0xd4]
fmul dword [0x672cc8]
fadd dword [esp + 0x20]
fstp dword [esp]
push eax
push ecx
call fcn.004383f0
add esp, 0x14
test al, al
je 0x43861f
mov byte [esp + 0x12], 1
jmp 0x43861f
mov al, byte [esp + 0x12]
test al, al
je 0x4389a6
lea edx, [esp + 0x48]
push edx
lea ebx, [esp + 0x6c]
call fcn.00438480
mov word [esp + 0x34], ax
mov eax, dword [esp + 0x30]
add esp, 4
cmp word [eax + 2], 2
jne 0x4388cd
cmp word [eax + 0x4c], 8
jl 0x4389a6
mov edi, dword [0x6571e0]
lea ecx, [esp + 0x68]
mov byte [esp + 0x12], 0
xor esi, esi
mov edx, ecx
cmp si, word [esp + 0x30]
jne 0x438921
mov ebx, dword [0x6571d4]
mov eax, ecx
mov dword [eax], ebx
mov ebx, dword [0x6571d8]
mov dword [eax + 4], ebx
mov ebx, dword [0x6571dc]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
mov ebp, dword [eax]
lea ebx, [ecx + 0x10]
mov dword [ebx], ebp
mov ebp, dword [eax + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [eax + 8]
mov dword [ebx + 8], ebp
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
jmp 0x43896d
mov eax, dword [ecx]
cmp eax, dword [esp + 0x48]
je 0x438932
mov eax, dword [ecx + 0xc]
cmp eax, dword [esp + 0x54]
jne 0x43896d
lea eax, [edx + 0x10]
mov ebp, dword [eax]
mov ebx, edx
mov dword [ebx], ebp
mov ebp, dword [eax + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], eax
mov ebx, dword [0x6571d4]
lea eax, [ecx + 0x10]
mov dword [eax], ebx
mov ebx, dword [0x6571d8]
mov dword [eax + 4], ebx
mov ebx, dword [0x6571dc]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
cmp dword [ecx], 0xffffffff
je 0x438977
mov byte [esp + 0x12], 1
inc esi
add edx, 0x20
add ecx, 0x20
cmp si, 4
jl 0x4388e0
mov al, byte [esp + 0x12]
test al, al
je 0x4389a6
lea ecx, [esp + 0x58]
push ecx
lea ebx, [esp + 0x6c]
call fcn.00438480
add esp, 4
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x2c]
cmp word [eax + 2], 2
jne 0x4389bc
cmp word [eax + 0x4c], 4
jl 0x438cc9
mov eax, dword [0x87fef4]
mov dl, byte [eax + 1]
or ecx, 0xffffffff
test dl, dl
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
je 0x4389f8
cmp dword [esp + 0xec], ecx
jne 0x4389e5
mov edi, dword [eax + 8]
jmp 0x438a00
mov edx, dword [0x87fe68]
mov eax, dword [edx + 0x34]
mov ecx, dword [esp + 0x28]
mov edi, dword [eax + ecx + 0x14]
jmp 0x438a00
mov edi, dword [esp + 0x3c]
lea esp, [esp]
mov edx, dword [0x87fef4]
mov cl, byte [edx + 1]
test cl, cl
mov byte [esp + 0x13], cl
je 0x438ab6
cmp edi, 0xffffffff
mov ebp, edi
je 0x438ab6
mov ecx, dword [0x87ff00]
mov edx, dword [ecx + 0x34]
mov esi, edi
and esi, 0xffff
mov eax, esi
imul eax, eax, 0x724
mov edi, dword [eax + edx + 0x2c]
add eax, edx
mov eax, dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x438a00
push 0
push 0
push 1
mov ebx, eax
call fcn.004303f0
imul esi, esi, 0x724
fstp dword [esp + 0x20]
mov edx, dword [0x87ff00]
mov eax, dword [edx + 0x34]
movsx ecx, word [esi + eax + 4]
mov edx, dword [ecx*4 + 0x6853b8]
mov al, byte [edx + 4]
add esp, 0xc
test al, 2
je 0x438a00
fld dword [esp + 0x14]
fcomp dword [0x672c1c]
fnstsw ax
test ah, 0x41
jne 0x438a00
fld dword [esp + 0x14]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x438a00
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], eax
jmp 0x438a00
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esp + 0x44], eax
je 0x438cc9
mov esi, dword [esp + 0x1c]
mov edx, dword [0x87ff00]
mov eax, dword [edx + 0x34]
and esi, 0xffff
imul esi, esi, 0x724
fld dword [esi + eax + 0x1b8]
fcomp dword [0x672af4]
add esi, eax
mov dword [esp + 0x20], eax
fnstsw ax
test ah, 5
jp 0x438b4b
fld dword [esi + 0x3b4]
fsub dword [esi + 0x1b8]
fcomp dword [0x672cc4]
fnstsw ax
test ah, 0x41
jne 0x438b4b
fld dword [0x672c18]
or ebp, 0xffffffff
test cl, cl
mov dword [esp + 0x24], 3
mov dword [esp + 0x14], ebp
je 0x438beb
cmp dword [esp + 0xec], ebp
jne 0x438bd9
mov edx, dword [0x87fef4]
mov edi, dword [edx + 8]
jmp 0x438bf0
mov edx, dword [esp + 0x2c]
mov ax, word [edx + 0x2a]
mov ecx, 1
cmp ax, cx
jne 0x438b6c
cmp word [edx + 0x1a], cx
jle 0x438b6c
mov dword [esp + 0x24], ecx
jmp 0x438cc9
cmp ax, 2
jl 0x438bb5
mov ecx, 2
jg 0x438b7c
movsx ecx, ax
movsx edi, ax
add edi, ecx
movsx ecx, word [edx + 0x1a]
cmp ecx, edi
jl 0x438b96
mov dword [esp + 0x24], 4
jmp 0x438cc9
cmp ax, 2
jl 0x438bb5
movsx edx, word [edx + 0x1a]
movsx eax, ax
dec edx
cmp eax, edx
jl 0x438bb5
mov dword [esp + 0x24], 5
jmp 0x438cc9
fld dword [esi + 0x1b8]
fcomp dword [0x672cd0]
fnstsw ax
test ah, 0x41
jne 0x438cc9
mov dword [esp + 0x24], 2
jmp 0x438cc9
mov eax, dword [0x87fe68]
mov edx, dword [eax + 0x34]
mov eax, dword [esp + 0x28]
mov edi, dword [edx + eax + 0x14]
jmp 0x438bf0
mov edi, dword [esp + 0x3c]
nop
test cl, cl
je 0x438cb6
cmp edi, 0xffffffff
mov ebx, edi
je 0x438cb6
mov eax, edi
mov edi, dword [esp + 0x20]
and eax, 0xffff
imul eax, eax, 0x724
mov edx, dword [eax + edi + 0x18]
add eax, edi
cmp edx, 0xffffffff
mov edi, dword [eax + 0x2c]
je 0x438bf0
cmp ebx, dword [esp + 0x1c]
je 0x438bf0
fld dword [eax + 0x120]
fsub dword [esi + 0x120]
fld dword [eax + 0x124]
fsub dword [esi + 0x124]
fld dword [eax + 0x128]
fsub dword [esi + 0x128]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp + 0x28]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [0x672c18]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x438c8a
fld st(0)
fmul st(1)
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x438bf0
mov ecx, dword [esi + 0x18]
push ecx
mov ecx, ebx
call fcn.0043ea80
mov cl, byte [esp + 0x17]
add esp, 4
cmp eax, 0xffffffff
je 0x438bf0
fstp st(0)
mov ebp, ebx
fld dword [esp + 0x28]
mov dword [esp + 0x14], eax
jmp 0x438bf0
cmp ebp, 0xffffffff
fstp st(0)
je 0x438cc9
mov edx, dword [esp + 0x14]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x20], edx
mov ebx, dword [0x87ff00]
lea esi, [esp + 0x30]
lea ecx, [esp + 0x48]
mov edi, 2
lea esp, [esp]
mov dx, word [esi]
cmp dx, 0xffff
je 0x438d1b
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x438d1b
mov ebp, dword [ebx + 0x34]
and eax, 0xffff
imul eax, eax, 0x724
movsx edx, dx
mov dx, word [edx*2 + str._t_a_b_n]
add eax, ebp
mov word [eax + 0x1e4], dx
mov edx, dword [ecx + 8]
mov dword [eax + 0x1e8], edx
add esi, 2
add ecx, 0x10
dec edi
jne 0x438ce0
mov ecx, dword [esp + 0x24]
cmp cx, 0xffff
je 0x438d84
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x438d84
mov edx, dword [ebx + 0x34]
and eax, 0xffff
imul eax, eax, 0x724
add eax, edx
mov word [eax + 0x1e4], cx
mov dword [eax + 0x1e8], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, 0xffffffff
je 0x438d84
mov ecx, dword [ebx + 0x34]
and eax, 0xffff
imul eax, eax, 0x724
add eax, ecx
mov ecx, dword [esp + 0x20]
mov word [eax + 0x1e4], 6
mov dword [eax + 0x1e8], ecx
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov byte [eax + 0x47], 1
mov byte [eax + 0x48], 0
mov word [eax + 0x4a], 0x78
mov word [eax + 0x4c], 0
pop ebx
add esp, 0xd8
ret