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

Disassembly:
sub esp, 0xe4
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [esp + 0xfc], edi
jne 0x470fb0
lea eax, [esp + 0x17]
mov dword [esp + 0xfc], eax
mov ecx, dword [esp + 0xfc]
push 0x9ef17c
mov byte [ecx], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [0x9f52a8]
mov eax, dword [ebp + 0x14]
mov byte [esp + 0x16], 0
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edi
cmp eax, edi
jne 0x470fe1
xor eax, eax
jmp 0x471003
mov edx, dword [eax + 4]
sub edx, dword [eax + 8]
jne 0x470ff6
mov eax, dword [eax]
mov dword [ebp + 0x18], eax
cmp eax, edi
jne 0x470ff6
xor eax, eax
jmp 0x471003
mov eax, dword [ebp + 0x18]
add eax, 0xc
mov dword [ebp + 0x1c], 0x70
mov ebx, eax
cmp eax, edi
je 0x47108a
lea ecx, [ecx]
mov esi, dword [esp + 0xf8]
cmp dword [ebx], esi
je 0x471055
mov eax, dword [ebp + 0x18]
cmp eax, edi
jne 0x471026
xor eax, eax
jmp 0x47104d
mov edx, dword [eax + 4]
sub edx, dword [eax + 8]
mov ecx, dword [ebp + 0x1c]
cmp edx, ecx
jne 0x471040
mov eax, dword [eax]
mov dword [ebp + 0x18], eax
cmp eax, edi
jne 0x471040
xor eax, eax
jmp 0x47104d
mov eax, dword [ebp + 0x18]
lea eax, [eax + ecx + 0xc]
add ecx, 0x70
mov dword [ebp + 0x1c], ecx
mov ebx, eax
cmp eax, edi
jne 0x471010
jmp 0x471091
cmp esi, edi
jne 0x47105d
xor eax, eax
jmp 0x47107a
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, edi
je 0x47106f
add ecx, dword [eax + 4]
mov eax, dword [eax]
cmp eax, edi
jne 0x471066
mov edx, dword [0x9f5298]
mov eax, dword [edx + 4]
add eax, ecx
cmp dword [ebx + 4], eax
je 0x4712d4
mov byte [esp + 0x16], 1
jmp 0x471091
mov esi, dword [esp + 0xf8]
mov eax, dword [esp + 0xfc]
push 0x50
lea ecx, [esp + 0x88]
push edi
push ecx
mov byte [eax], 1
mov dword [esp + 0x8c], edi
call fcn.0065b340
add esp, 0xc
lea edi, [esp + 0x80]
mov edx, esi
call fcn.00470f10
test al, al
jne 0x4710d2
mov edx, dword [0x9f5298]
call fcn.00470f10
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x88]
fld dword [eax + 4]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x1c], edx
fstp dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x94]
add eax, 4
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x9c]
fld dword [edx + 4]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x38], eax
fstp dword [esp + 0x40]
mov eax, dword [esp + 0xa0]
fld dword [eax + 4]
mov eax, dword [esp + 0xac]
add ecx, 4
fstp dword [esp + 0x44]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xa4]
fld dword [ecx + 4]
mov ecx, dword [esp + 0xb0]
add eax, 4
fstp dword [esp + 0x48]
fld dword [edx + 4]
mov edx, dword [esp + 0xb4]
add ecx, 4
fstp dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xb8]
add edx, 4
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xbc]
add eax, 4
mov dword [esp + 0x58], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 4]
mov dword [esp + 0x60], edx
mov edx, dword [eax + 8]
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 8]
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0xd0]
fld dword [edx + 4]
add eax, 4
add ecx, 4
fstp dword [esp + 0x7c]
cmp byte [esp + 0x16], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
je 0x471268
mov eax, dword [esp + 0xf8]
mov ecx, 0x1a
lea esi, [esp + 0x18]
lea edi, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x471243
mov dword [ebx + 4], eax
jmp 0x4712d4
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
je 0x471259
lea esp, [esp]
add ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
jne 0x471250
mov eax, dword [0x9f5298]
mov eax, dword [eax + 4]
add eax, ecx
mov dword [ebx + 4], eax
jmp 0x4712d4
mov dword [esp + 0x80], esi
test esi, esi
jne 0x471277
xor eax, eax
jmp 0x471294
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
je 0x471289
add ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
jne 0x471280
mov edx, dword [0x9f5298]
mov eax, dword [edx + 4]
add eax, ecx
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 4]
mov edx, dword [eax + 4]
mov ecx, 0x1a
lea esi, [esp + 0x18]
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [0x9f52a8]
push 0x70
lea ecx, [ebp + 4]
call edx
inc dword [esi]
mov ebx, eax
mov ecx, 0x1c
lea esi, [esp + 0x80]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x9ef17c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
lea eax, [ebx + 8]
pop ebx
add esp, 0xe4
ret