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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x481640
lea eax, [esi + 0x70]
mov ecx, dword fs:[0]
mov dword [esi + 0x70], ecx
mov dword fs:[0], eax
mov eax, dword [0x69b710]
mov eax, dword [eax]
test eax, eax
je 0x47c20e
lea eax, [esi + 0x10]
mov dword [esi + 0x10], 2
mov dword [esi + 0x20], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x78], 1
add eax, 0x48
push ecx
push eax
call fcn.0050f0b0
add esp, 8
mov eax, dword [ebp + 8]
add eax, 0x14
mov dword [esi + 0x60], eax
nop
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4c], 0
jle 0x47c158
push dword [ebp + 0x10]
push dword [esi + 0x60]
lea eax, [esi + 0x48]
push eax
call fcn.0048a5c0
add esp, 0xc
cmp dword [esi + 0x48], 0
je 0x47c19a
mov eax, dword [esi + 0x50]
movsd xmm0, qword [esi + 0x48]
mov dword [esi + 0x30], eax
lea eax, [esi + 0x28]
movsd qword [esi + 0x28], xmm0
push eax
call fcn.0051b630
add esp, 4
movzx edx, byte [eax + 0x20]
mov edi, 6
add dl, 0xfa
movzx ecx, dl
cmp dl, 6
cmovae ecx, edi
cmp cl, 5
je 0x47c0d7
movzx ecx, cl
cmp ecx, 3
jne 0x47c0dd
cmp byte [eax + 0x21], 0
jne 0x47c0f6
lea eax, [esi + 0x28]
push eax
call fcn.0051b630
add esp, 4
cmp dword [eax + 0xd8], 0
je 0x47c070
mov eax, dword [esi + 0x30]
movsd xmm0, qword [esi + 0x28]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x38]
movsd qword [esi + 0x38], xmm0
push eax
call fcn.0051b630
add esp, 4
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
lea eax, [esi + 0x38]
push eax
push dword [ebp + 8]
call fcn.00508730
add esp, 8
xor eax, eax
cmp dword [esi + 0x64], 0x3b9aca00
mov ecx, dword [esi + 0x40]
movsd xmm0, qword [esi + 0x38]
setne al
mov dword [esi + 0x50], ecx
movsd qword [esi + 0x48], xmm0
push eax
lea eax, [esi + 0x48]
push eax
push dword [ebp + 0x14]
call fcn.0050e8b0
add esp, 0xc
jmp 0x47c070
cmp dword [esi + 0x10], 2
je 0x47c1fd
lea eax, [esi + 8]
mov dword [esi + 0x78], 0
push eax
push dword [esi + 4]
call fcn.00532270
add esp, 8
cmp dword [esi + 0x10], 2
je 0x47c1fd
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esi + 0x78], 2
push ecx
push eax
push dword [esi + 4]
call fcn.005322a0
add esp, 0xc
jmp 0x47c1d6
cmp dword [esi + 0x10], 2
je 0x47c1fd
lea eax, [esi + 8]
mov dword [esi + 0x78], 0
push eax
push dword [esi + 4]
call fcn.00532270
add esp, 8
cmp dword [esi + 0x10], 2
je 0x47c1fd
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esi + 0x78], 3
push ecx
push eax
push dword [esi + 4]
call fcn.005322a0
add esp, 0xc
mov eax, dword [esi + 0x10]
cmp eax, 2
je 0x47c1fd
test eax, eax
je 0x47c1fd
mov eax, dword [esi + 0x14]
lock dec dword [eax]
jne 0x47c1fd
lea eax, [esi + 0x14]
mov dword [esi + 0x78], 0xffffffff
push eax
call fcn.0042de60
add esp, 4
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [0x69acc0]
movzx eax, byte [edi + 8]
test al, al
je 0x47c037
movzx ecx, al
cmp ecx, 1
je 0x47c233
cmp ecx, 2
jne 0x47c2cc
mov al, 2
movzx eax, al
push eax
push dword [edi]
call fcn.005313d0
add esp, 8
test al, al
je 0x47c037
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x47c2e2
mov edi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
lea ebx, [ebp + 0xc]
mov dword [esi + 0x48], edi
lea edi, [esi + 0x48]
mov dword [esi + 0x4c], edx
movlps qword [esi + 0x50], xmm0
mov dword [esi + 0x58], 0
mov dword [esi + 0x38], edi
lea edi, [esi + 0x38]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0x609e8c
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], 1
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x28]
lea edi, [esi + 8]
push ecx
push eax
push edi
call fcn.005310b0
add esp, 0xc
cmp dword [esi + 0x10], 2
lea eax, [esi + 0x10]
mov dword [esi + 4], eax
je 0x47c04b
mov dword [esi + 0x78], 0
push edi
push eax
call fcn.00532240
add esp, 8
jmp 0x47c04b
push edi
call fcn.0059e2f0
add esp, 4
test al, al
jne 0x47c233
jmp 0x47c037
push 0x609e7c
push 0x22
push 0x609c42
call fcn.005a0a40
add esp, 0xc
ud2