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

Disassembly:
push 0xffffffffffffffff
push 0x5cd73e
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0x5ef694
lea ecx, [esp + 0x24]
mov dword [esi + 0x180], 0x28
mov dword [esi + 0x184], ebx
mov dword [esi + 0x174], ebx
call fcn.0048cd50
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 0x14]
mov dword [esp + 0x8c], ebx
call fcn.004b7af0
cmp dword [esp + 0x3c], 0x10
mov ebp, eax
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x20], 0x5f1558
jb 0x474fcf
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004274fc
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x20], 0x5f13d0
je 0x4751f4
mov ecx, esi
call fcn.00473210
mov ecx, esi
mov edi, eax
call fcn.004733c0
cmp edi, 2
je 0x47501f
cmp eax, 2
je 0x47501f
cmp edi, 1
je 0x475013
cmp eax, 1
jne 0x475029
mov dword [esi + 0x174], 1
jmp 0x475029
mov dword [esi + 0x174], 2
push 0x5ef69c
lea ecx, [esp + 0x44]
call fcn.0048cd50
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
mov dword [esp + 0x8c], 1
call fcn.004b7a30
cmp dword [esp + 0x5c], 0x10
mov edi, eax
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x40], 0x5f1558
jb 0x475077
mov eax, dword [esp + 0x48]
push eax
call fcn.004274fc
add esp, 4
cmp edi, ebx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x40], 0x5f13d0
je 0x4750c2
mov ecx, edi
call fcn.004b57f0
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x180], ecx
fldcw word [esp + 0x16]
push 0x5ef6a4
lea ecx, [esp + 0x44]
call fcn.0048cd50
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
mov dword [esp + 0x8c], 2
call fcn.004b7a30
cmp dword [esp + 0x5c], 0x10
mov edi, eax
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x40], 0x5f1558
jb 0x475110
mov eax, dword [esp + 0x48]
push eax
call fcn.004274fc
add esp, 4
cmp edi, ebx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x40], 0x5f13d0
je 0x47515b
mov ecx, edi
call fcn.004b57f0
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x1c8], ecx
fldcw word [esp + 0x16]
push 0x5ef6a8
lea ecx, [esp + 0x64]
call fcn.0048cd50
lea edx, [esp + 0x60]
push edx
mov ecx, ebp
mov dword [esp + 0x8c], 3
call fcn.004b7a30
cmp dword [esp + 0x7c], 0x10
mov edi, eax
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x60], 0x5f1558
jb 0x4751a9
mov eax, dword [esp + 0x68]
push eax
call fcn.004274fc
add esp, 4
cmp edi, ebx
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x60], 0x5f13d0
je 0x4751f4
mov ecx, edi
call fcn.004b57f0
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x184], ecx
fldcw word [esp + 0x16]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret