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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eb025
mov eax, dword fs:[0]
push eax
sub esp, 0x6c8
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x6c0], eax
push ebx
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x6d8]
mov dword fs:[0], eax
mov ebx, ecx
push 0x10
mov dword [esp + 0x3c], ebx
call fcn.004aef0e
add esp, 4
xor ecx, ecx
cmp eax, ecx
je 0x475e75
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [esp + 0x34], eax
jmp 0x475e79
mov dword [esp + 0x34], ecx
mov eax, dword [ebx + 0x54]
mov esi, dword [eax]
lea edi, [ebx + 0x50]
mov dword [esp + 0x6e0], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
test edi, edi
mov ecx, dword [ebx + 0x54]
lea eax, [ebx + 0x50]
mov dword [esp + 0x70], ecx
je 0x475ea6
cmp edi, eax
je 0x475eab
call fcn.004c000c
cmp esi, dword [esp + 0x70]
je 0x4761de
test edi, edi
jne 0x475ebe
call fcn.004c000c
cmp esi, dword [edi + 4]
jne 0x475ec8
call fcn.004c000c
lea eax, [esi + 0x28]
push eax
lea edx, [esp + 0x60]
lea edi, [ebx + 0xc]
push edx
mov ecx, edi
call fcn.004415b0
mov ebx, dword [esp + 0x5c]
test ebx, ebx
mov eax, dword [edi + 4]
mov dword [esp + 0x80], eax
je 0x475ef1
cmp ebx, edi
je 0x475ef6
call fcn.004c000c
mov edi, dword [esp + 0x60]
cmp edi, dword [esp + 0x80]
je 0x4761ba
test ebx, ebx
jne 0x475f10
call fcn.004c000c
cmp edi, dword [ebx + 4]
jne 0x475f1a
call fcn.004c000c
mov edi, dword [edi + 0x14]
mov ebx, dword [edi + 0x1e]
mov dword [esp + 0x18], ebx
call fcn.004b978a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4761d4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
movzx edx, byte [esp + 0x1a]
mov ecx, ebx
shr ecx, 0x18
push ecx
push edx
movzx eax, bh
push eax
movzx ecx, bl
push ecx
lea edx, [esp + 0x38]
push 0x500e34
push edx
mov dword [esp + 0x6f8], 1
call fcn.00406da0
mov eax, dword [esp + 0x38]
add esp, 0x18
cmp esi, dword [eax + 4]
jne 0x475f87
call fcn.004c000c
mov ebx, dword [esp + 0x38]
lea eax, [esi + 0x28]
push eax
lea ecx, [esp + 0x58]
add ebx, 0x38
push ecx
mov ecx, ebx
call fcn.00477520
mov eax, dword [esp + 0x54]
test eax, eax
mov edx, dword [ebx + 4]
mov dword [esp + 0x78], edx
je 0x475fb1
cmp eax, ebx
je 0x475fb6
call fcn.004c000c
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x58], eax
mov edx, dword [esp + 0x20]
setne cl
cmp esi, dword [edx + 4]
mov byte [esp + 0x48], cl
jne 0x475fd3
call fcn.004c000c
fldz
fcomp qword [esi + 0x18]
fnstsw ax
test ah, 0x44
jp 0x475fe7
fld qword [0x4f8a48]
jmp 0x475fea
fld qword [esi + 0x18]
fstp qword [esp + 0x2c]
call fcn.00419310
fld qword [eax + 0x108]
mov eax, dword [esi + 0x14]
test eax, eax
fmul qword [0x4fb878]
fmul qword [0x501040]
fdiv qword [esp + 0x2c]
fild dword [esi + 0x14]
jge 0x476019
fadd qword [0x4f9540]
faddp st(1)
mov edx, dword [edi + 0x30]
fnstcw word [esp + 0x18]
mov dword [esp + 0x64], edx
fdiv qword [0x501058]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x64]
push eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x3c]
fldcw word [esp + 0x1c]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
call edx
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x38]
test eax, eax
fldcw word [esp + 0x18]
mov dword [esp + 0x18], eax
jne 0x4760a0
mov dword [esp + 0x18], 0x500e4c
movzx ecx, word [edi + 0x84]
mov edx, dword [esp + 0x20]
cmp esi, dword [edx + 4]
mov bl, byte [edi + 0x68]
mov dword [esp + 0x3c], ecx
jne 0x4760bc
call fcn.004c000c
mov eax, dword [esp + 0x20]
cmp esi, dword [eax + 4]
jne 0x4760ca
call fcn.004c000c
mov ecx, dword [esp + 0x20]
cmp esi, dword [ecx + 4]
jne 0x4760d8
call fcn.004c000c
movzx edx, word [edi + 0x1c]
movzx eax, word [edi + 0x10]
movzx ecx, word [edi + 0x22]
mov edi, dword [esp + 0x28]
cmp dword [edi - 4], 1
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], ecx
jle 0x47610b
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x2c]
call fcn.00406b50
mov edi, dword [esp + 0x28]
movzx edx, word [esp + 0x3c]
fld qword [esi + 0x18]
mov eax, dword [esp + 0x18]
fmul qword [0x4f5e48]
mov ecx, dword [esp + 0x1c]
push eax
fnstcw word [esp + 0x1c]
mov eax, dword [esi + 0x14]
push ecx
movsx ecx, word [esi + 0x12]
neg bl
sbb ebx, ebx
and ebx, 0x100
add ebx, edx
push ebx
push eax
movzx eax, word [esp + 0x28]
or eax, 0xc00
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
push ecx
fldcw word [esp + 0x50]
mov ecx, dword [esp + 0x5c]
fistp qword [esp + 0x50]
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x68]
fldcw word [esp + 0x30]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
push edi
lea ecx, [esp + 0xb4]
call fcn.00474090
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x84]
push edx
call fcn.0044be60
add edi, 0xfffffff0
mov dword [esp + 0x6e0], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4761ba
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ecx, [esp + 0x20]
call fcn.004400c0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
jmp 0x475e94
push 0x80004005
call fcn.004069a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6c0]
xor ecx, esp
call fcn.004bfdfd
mov esp, ebp
pop ebp
ret