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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x2c]
mov eax, dword [edx + 0x20]
push edi
mov dword [esp + 0x34], eax
mov ecx, 0xa
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi + 0x18], 0xa2879f2e
mov dword [esi + 0x1c], 0x547d42ae
mov cl, byte [edx + 0x1c]
mov eax, dword [edx + 0x3c]
not cl
and ecx, 0xff
mov dword [esp + 0x70], 0xffffffff
and ecx, 8
mov esi, 1
shl ecx, 4
or ecx, 3
test eax, eax
mov dword [esp + 0x7c], ecx
je 0x5d9168
mov ebx, eax
mov dword [esp + 0x4c], 0xffffcfff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x48], ecx
jmp 0x5d91eb
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0xc8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x70]
mov dword [esp + 0xd0], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0xec], esi
mov dword [esp + 0xcc], ecx
mov byte [esp + 0xf4], 5
mov dword [esp + 0xd4], eax
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ecx
mov cl, byte [edx + 0x1d]
test cl, cl
jne 0x5d91cc
mov edx, dword [eax + 0x10]
mov dword [esp + 0xdc], edx
lea ebx, [esp + 0xc8]
mov dword [esp + 0x4c], 0xfff0ffff
mov dword [esp + 0x48], 3
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x5d98be
mov ecx, dword [ebp + 0x24]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x28]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x6c]
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x24]
xor esi, esi
mov edi, 1
cmp eax, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], 0x3ff00000
mov dword [esp + 0x14], esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], esi
jle 0x5d9334
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
push ecx
call fcn.005d83e0
add esp, 0x1c
test eax, eax
je 0x5d932c
mov ecx, dword [esp + 0xc]
or ecx, 0x11000
mov dword [esp + 0xc], ecx
mov cx, word [eax + 0x10]
test cl, 1
je 0x5d92f9
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
or edx, 0x40000
mov dword [esp + 0xc], edx
mov dx, word [ecx + 2]
and edx, 0x800
cmp edx, 0x800
jne 0x5d92e5
lea ecx, [edi + edi*4]
mov dword [esp + 0x38], 1
lea edi, [ecx + ecx*4]
jmp 0x5d9306
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x5d9306
mov ecx, dword [ecx]
test ecx, ecx
je 0x5d9306
imul ecx, edi
mov edi, ecx
jmp 0x5d9306
test cl, 0x80
je 0x5d9306
or dword [esp + 0xc], 0x80000
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov eax, dword [esp + 0x1c]
or eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
or eax, edx
inc esi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x24]
cmp esi, eax
jl 0x5d926a
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], edi
mov eax, dword [ebx + 0x24]
cmp esi, eax
jne 0x5d935f
mov cl, byte [ebx + 0x2c]
test cl, cl
je 0x5d935f
mov eax, dword [esp + 0xc]
test eax, 0xc0000
jne 0x5d9477
or eax, 0x4000000
mov dword [esp + 0xc], eax
jmp 0x5d9477
mov cl, byte [ebx + 0x2e]
test cl, cl
jne 0x5d9477
cmp esi, eax
jne 0x5d9373
or edi, 0xffffffff
jmp 0x5d9379
mov eax, dword [ebx + 4]
mov edi, dword [eax + esi*4]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
push 0x3c
push edx
mov edx, dword [ebp + 0xc]
push eax
push edi
push ecx
push edx
call fcn.005d83e0
add esp, 0x1c
test eax, eax
je 0x5d9477
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [esp + 0x38]
push 0x18
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push edi
push eax
push ecx
call fcn.005d83e0
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp + 0x18]
push edx
mov edx, dword [esp + 0x54]
push 0x24
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edi
push edx
push eax
call fcn.005d83e0
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0xb8]
mov edi, eax
mov eax, dword [ebp + 8]
push ecx
push esi
push edi
push edx
push ebx
push eax
call fcn.005d9e20
add esp, 0x50
test esi, esi
je 0x5d9431
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov esi, dword [esp + 0x1c]
or eax, 0x100000
or esi, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
or eax, edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
test edi, edi
je 0x5d9466
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
mov ecx, dword [edi + 0x1c]
inc eax
or esi, 0x200000
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x18]
or edx, eax
mov eax, dword [esp + 0x20]
or eax, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x44]
or eax, 0x22000
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x74]
push edx
mov edx, dword [ebp + 0xc]
push edi
push esi
push eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.005d9aa0
add esp, 0x20
test eax, eax
je 0x5d94c5
mov edx, dword [esp + 0x74]
mov dword [esp + 0x68], 0
neg edx
sbb edx, edx
and edx, 0x2000000
or edx, 0x1022000
or edi, edx
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
push esi
push eax
mov eax, dword [ebp + 8]
push ecx
push ebx
push edx
push eax
call fcn.005d9930
add esp, 0x18
test eax, eax
je 0x5d94fe
test edi, 0x40000
jne 0x5d94fe
or edi, 0x40022000
mov dword [esp + 0x64], 0
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x5d9592
test edi, edi
je 0x5d9592
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x24]
test eax, eax
mov dword [esp + 0x50], edx
jle 0x5d956a
mov edi, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov ecx, dword [edi]
cmp ecx, 0x3f
jge 0x5d955c
mov eax, 1
xor edx, edx
call fcn.00642fb0
mov ecx, dword [esp + 0x50]
not eax
and ecx, eax
mov eax, dword [esp + 0x54]
not edx
and eax, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
add edi, 4
dec eax
mov dword [esp + 0x58], eax
jne 0x5d9531
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
or eax, ecx
jne 0x5d9586
mov edi, dword [esp + 0xc]
or edi, 0x800000
mov dword [esp + 0xc], edi
jmp 0x5d9592
mov edi, dword [esp + 0xc]
mov dword [esp + 0x28], 1
mov edx, dword [esp + 0x18]
mov dword [esp + 0x8c], 0
mov edx, dword [edx + esi*4]
mov eax, edx
imul eax, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x38]
fild qword [esp + 0x88]
test eax, eax
je 0x5d9628
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa4], 0
fld st(0)
mov ecx, dword [ecx]
fadd st(0), st(0)
mov dword [esp + 0xa0], ecx
fild qword [esp + 0xa0]
fcompp
fnstsw ax
test ah, 1
je 0x5d9628
shr ecx, 1
xor eax, eax
mov dword [esp + 0xb8], ecx
fstp st(0)
mov dword [esp + 0xbc], eax
mov dword [esp + 0x90], edx
fild qword [esp + 0xb8]
mov dword [esp + 0x94], eax
fild qword [esp + 0x90]
fdivr st(1)
call fcn.0063fe48
mov dword [esp + 0x24], eax
fdiv qword [esp + 0x80]
fcom qword [0x966708]
fst qword [esp + 0x38]
fnstsw ax
test ah, 1
je 0x5d964c
fstp st(0)
fld qword [0x966708]
fst qword [esp + 0x38]
test edi, 0x100f3000
jne 0x5d9678
mov edx, dword [esp + 0x18]
mov dword [esp + 0x9c], 0
mov eax, dword [edx]
shl eax, 2
mov dword [esp + 0x98], eax
fild qword [esp + 0x98]
jmp 0x5d96d5
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xac], 0
fstp st(0)
mov edx, dword [ecx]
sub esp, 8
mov dword [esp + 0xb0], edx
fild qword [esp + 0xb0]
fstp qword [esp]
call fcn.005d8c20
mov eax, dword [esp + 0x18]
add esp, 8
fstp qword [esp + 0x58]
test eax, eax
je 0x5d96c7
mov eax, dword [esp + 0x28]
fld qword [esp + 0x38]
fild dword [esp + 0x24]
test eax, eax
je 0x5d96cf
fadd st(1)
jmp 0x5d96cf
fld qword [esp + 0x38]
fild dword [esp + 0x24]
fmul qword [esp + 0x58]
fadd st(1)
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x3c]
fstp qword [esp + 0x28]
mov edi, dword [esp + 0x38]
test eax, eax
je 0x5d970b
push esi
push edi
fstp st(0)
call fcn.005d8c20
fmul qword [esp + 0x40]
add esp, 8
fmul qword [0x9667f8]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x38]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x5d9735
push esi
push edi
fstp st(0)
call fcn.005d8c20
fmul qword [esp + 0x40]
add esp, 8
fmul qword [0x9667f8]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x38]
fcom qword [0x9667f0]
fnstsw ax
test ah, 0x41
jne 0x5d9827
mov eax, dword [ebp + 0x2c]
fld qword [esp + 0x28]
fcomp qword [eax + 0x18]
fnstsw ax
test ah, 0x41
je 0x5d9827
mov ecx, dword [esp + 0x44]
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 4]
push eax
push ecx
fstp st(0)
mov dword [esp + 0x1c], edx
call fcn.005d7190
fld qword [esp + 0x40]
mov edi, eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0xcc], edx
mov edx, dword [esi + 0x18]
add esp, 8
lea esi, [eax + 0x10]
test edx, edx
je 0x5d9812
test byte [esi + 2], 2
jne 0x5d9801
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0x1c]
and eax, ecx
mov ecx, dword [esi + 0x14]
and ecx, dword [ebp + 0x20]
cmp eax, edi
jne 0x5d9801
cmp ecx, dword [esp + 0xc4]
jne 0x5d9801
mov ax, word [esi]
test al, 0x83
je 0x5d97da
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5d97d2
dec eax
mov dword [esp + 0x18], eax
jmp 0x5d9801
fmul qword [0x9667a8]
jmp 0x5d9801
test al, 0x3c
je 0x5d97f5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5d97ed
dec eax
mov dword [esp + 0x14], eax
jmp 0x5d9801
fmul qword [0x9667e8]
jmp 0x5d9801
cmp ax, 0x800
je 0x5d9801
fmul qword [0x9666f0]
fcom qword [0x9667f0]
dec edx
add esi, 0x28
fnstsw ax
test ah, 0x41
je 0x5d9797
fcom qword [0x9667f0]
fnstsw ax
test ah, 1
je 0x5d9827
fstp st(0)
fld qword [0x9667f0]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test esi, esi
je 0x5d9837
test edx, edx
je 0x5d9893
mov ecx, dword [ebp + 0x2c]
fld qword [esp + 0x28]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 1
jne 0x5d9860
fld qword [esp + 0x28]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 0x41
je 0x5d9893
fcom qword [ecx + 8]
fnstsw ax
test ah, 1
je 0x5d9893
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x4c]
fstp qword [ecx + 8]
and edx, eax
mov dword [ecx + 0x1c], edi
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], esi
jmp 0x5d9895
fstp st(0)
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x5d98be
mov ebx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x7c]
test ebx, ebx
mov dword [esp + 0x4c], 0xffffcfff
mov dword [esp + 0x48], ecx
mov dword [esp + 0x10], ebx
jne 0x5d920f
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x5d98de
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x2c]
mov ecx, dword [edx]
test dword [ecx + 0x18], 0x1000000
je 0x5d98e1
or dword [esi], 0x2000000
jmp 0x5d98e1
mov esi, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push esi
push eax
mov eax, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push edi
push ebx
push ecx
push edx
push eax
call fcn.005d8c60
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
push ebx
push ecx
push edx
push eax
call fcn.005d9d00
mov ecx, dword [esp + 0x84]
mov eax, dword [esi]
add esp, 0x3c
or eax, ecx
mov dword [esi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret