Function at 0x5a43c0
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 0x5a4438
mov ebx, eax
mov dword [esp + 0x4c], 0xffffcfff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x48], ecx
jmp 0x5a44bb
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 0x5a449c
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 0x5a4b8e
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 0x5a4604
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.005a36b0
add esp, 0x1c
test eax, eax
je 0x5a45fc
mov ecx, dword [esp + 0xc]
or ecx, 0x11000
mov dword [esp + 0xc], ecx
mov cx, word [eax + 0x10]
test cl, 1
je 0x5a45c9
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 0x5a45b5
lea ecx, [edi + edi*4]
mov dword [esp + 0x38], 1
lea edi, [ecx + ecx*4]
jmp 0x5a45d6
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x5a45d6
mov ecx, dword [ecx]
test ecx, ecx
je 0x5a45d6
imul ecx, edi
mov edi, ecx
jmp 0x5a45d6
test cl, 0x80
je 0x5a45d6
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 0x5a453a
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], edi
mov eax, dword [ebx + 0x24]
cmp esi, eax
jne 0x5a462f
mov cl, byte [ebx + 0x2c]
test cl, cl
je 0x5a462f
mov eax, dword [esp + 0xc]
test eax, 0xc0000
jne 0x5a4747
or eax, 0x4000000
mov dword [esp + 0xc], eax
jmp 0x5a4747
mov cl, byte [ebx + 0x2e]
test cl, cl
jne 0x5a4747
cmp esi, eax
jne 0x5a4643
or edi, 0xffffffff
jmp 0x5a4649
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.005a36b0
add esp, 0x1c
test eax, eax
je 0x5a4747
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.005a36b0
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.005a36b0
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.005a50f0
add esp, 0x50
test esi, esi
je 0x5a4701
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 0x5a4736
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.005a4d70
add esp, 0x20
test eax, eax
je 0x5a4795
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.005a4c00
add esp, 0x18
test eax, eax
je 0x5a47ce
test edi, 0x40000
jne 0x5a47ce
or edi, 0x40022000
mov dword [esp + 0x64], 0
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x5a4862
test edi, edi
je 0x5a4862
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 0x5a483a
mov edi, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov ecx, dword [edi]
cmp ecx, 0x3f
jge 0x5a482c
mov eax, 1
xor edx, edx
call fcn.005db350
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 0x5a4801
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
or eax, ecx
jne 0x5a4856
mov edi, dword [esp + 0xc]
or edi, 0x800000
mov dword [esp + 0xc], edi
jmp 0x5a4862
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 0x5a48f8
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 0x5a48f8
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.005d8448
mov dword [esp + 0x24], eax
fdiv qword [esp + 0x80]
fcom qword [0x679360]
fst qword [esp + 0x38]
fnstsw ax
test ah, 1
je 0x5a491c
fstp st(0)
fld qword [0x679360]
fst qword [esp + 0x38]
test edi, 0x100f3000
jne 0x5a4948
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 0x5a49a5
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.005a3ef0
mov eax, dword [esp + 0x18]
add esp, 8
fstp qword [esp + 0x58]
test eax, eax
je 0x5a4997
mov eax, dword [esp + 0x28]
fld qword [esp + 0x38]
fild dword [esp + 0x24]
test eax, eax
je 0x5a499f
fadd st(1)
jmp 0x5a499f
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 0x5a49db
push esi
push edi
fstp st(0)
call fcn.005a3ef0
fmul qword [esp + 0x40]
add esp, 8
fmul qword [0x679450]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x38]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x5a4a05
push esi
push edi
fstp st(0)
call fcn.005a3ef0
fmul qword [esp + 0x40]
add esp, 8
fmul qword [0x679450]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x38]
fcom qword [0x679448]
fnstsw ax
test ah, 0x41
jne 0x5a4af7
mov eax, dword [ebp + 0x2c]
fld qword [esp + 0x28]
fcomp qword [eax + 0x18]
fnstsw ax
test ah, 0x41
je 0x5a4af7
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.005a2460
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 0x5a4ae2
test byte [esi + 2], 2
jne 0x5a4ad1
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 0x5a4ad1
cmp ecx, dword [esp + 0xc4]
jne 0x5a4ad1
mov ax, word [esi]
test al, 0x83
je 0x5a4aaa
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5a4aa2
dec eax
mov dword [esp + 0x18], eax
jmp 0x5a4ad1
fmul qword [0x679400]
jmp 0x5a4ad1
test al, 0x3c
je 0x5a4ac5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5a4abd
dec eax
mov dword [esp + 0x14], eax
jmp 0x5a4ad1
fmul qword [0x679440]
jmp 0x5a4ad1
cmp ax, 0x800
je 0x5a4ad1
fmul qword [0x679348]
fcom qword [0x679448]
dec edx
add esi, 0x28
fnstsw ax
test ah, 0x41
je 0x5a4a67
fcom qword [0x679448]
fnstsw ax
test ah, 1
je 0x5a4af7
fstp st(0)
fld qword [0x679448]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test esi, esi
je 0x5a4b07
test edx, edx
je 0x5a4b63
mov ecx, dword [ebp + 0x2c]
fld qword [esp + 0x28]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 1
jne 0x5a4b30
fld qword [esp + 0x28]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 0x41
je 0x5a4b63
fcom qword [ecx + 8]
fnstsw ax
test ah, 1
je 0x5a4b63
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 0x5a4b65
fstp st(0)
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x5a4b8e
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 0x5a44df
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x5a4bae
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x2c]
mov ecx, dword [edx]
test dword [ecx + 0x18], 0x1000000
je 0x5a4bb1
or dword [esi], 0x2000000
jmp 0x5a4bb1
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.005a3f30
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.005a4fd0
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