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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e001
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x18], eax
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
and eax, 6
push 0x44
mov dword [ebp - 0x1c], edi
mov dword [edi + 8], eax
call fcn.00592716
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
lea esi, [eax + 4]
mov dword [eax], 0x5c3b24
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [esi], fcn.0058c4a0
mov dword [esi + 4], 0x5b57c4
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov byte [ebp - 4], 2
mov ecx, esi
mov byte [esi + 0x14], 0
push dword [0x6102c8]
push dword [0x6102c4]
call fcn.0058c580
lea ecx, [esi + 0x18]
mov dword [ecx], fcn.0058c4a0
mov dword [ebp - 0x2c], ecx
mov dword [ecx + 4], 0x5b57c4
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov byte [ebp - 4], 4
mov byte [ecx + 0x14], 0
push dword [0x6102e0]
push dword [0x6102dc]
call fcn.0058c580
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x20]
add esi, 0x34
mov dword [ebp - 0x30], esi
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00592716
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, dword [ebp - 0x20]
mov ecx, esi
mov byte [esi + 0x3c], 0
mov dword [esi], 0x5c3ad0
mov dword [esi + 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
call dword [eax + 4]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4753c9
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push eax
mov dword [edi + 4], esi
call fcn.00475a20
add esp, 4
cmp byte [0x613d85], 0
movups xmm0, xmmword [eax]
movups xmmword [edi + 0xc], xmm0
je 0x475424
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x58]
add ecx, 4
push eax
call fcn.004747f0
lea ecx, [edi + 0xc]
mov esi, 0xc
lea edx, [ebp - 0x58]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x475418
add ecx, 4
add edx, 4
sub esi, 4
jae 0x475405
jmp 0x475424
movups xmm0, xmmword [ebp - 0x58]
or dword [ebp + 0xc], 1
movups xmmword [edi + 0xc], xmm0
mov dword [ebp - 4], 6
nop dword [eax + eax]
mov esi, dword [edi + 4]
mov dword [ebp - 0x34], esi
test esi, esi
je 0x475441
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x100f8
mov byte [ebp - 4], 8
call fcn.00592716
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x38], esi
test esi, esi
je 0x475465
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi], 0x5c0f40
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x475482
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [edi + 4]
mov dword [eax + 4], 0xffffffff
mov dword [eax], int.00408f80
mov dword [eax + 0x10008], esi
test esi, esi
je 0x4754a3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [edi + 4]
add eax, 0x1000c
mov dword [ebp - 0x30], eax
lea ecx, [eax + 8]
mov dword [eax], 0x5b608c
mov byte [eax + 4], 0
mov dword [ebp - 0x40], ecx
mov dword [ecx], 0
sub esp, 8
mov byte [ebp - 4], 0xf
call fcn.0058d310
lea eax, [edi + 4]
mov dword [eax + 0x10018], 0x5b57a8
mov dword [eax + 0x1001c], 0x5b57c4
mov dword [eax + 0x10020], 0
mov dword [eax + 0x10024], 0
mov dword [eax + 0x10028], 0
mov byte [eax + 0x1002c], 0
add eax, 0x10030
mov dword [ebp - 0x2c], eax
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ecx], 0x5c0f70
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], 0x5b57a8
mov dword [ecx + 0x24], 0x5b57c4
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ecx + 0x34], 0
mov dword [ecx + 0x38], 0x5b57a8
mov dword [ecx + 0x3c], 0x5b57c4
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov byte [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x6c], 0
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x74], 0
mov dword [ecx + 0x78], 0
lea eax, [ecx + 0x7c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x18
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x14]
or eax, 2
push 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call fcn.00592716
mov edx, dword [ebp - 0x28]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x24], ecx
mov dword [ecx], 0x5bcc58
mov dword [ecx + 4], 0
mov dword [ecx], 0x5c0ee0
mov dword [ecx + 8], esi
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov dword [edx + 4], 0
mov dword [edx], 0
test eax, eax
je 0x47563f
mov ecx, dword [ebp - 0x20]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
mov ecx, dword [ebp - 0x24]
jne 0x47563f
mov ecx, dword [ebp - 0x20]
push 1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
lea eax, [ecx + 4]
lock inc dword [eax]
lea eax, [ecx + 8]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x14]
and eax, 0xfffffffd
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x84], 1
movups xmm0, xmmword [0x5bbe18]
movups xmmword [eax + 0x88], xmm0
mov dword [edi + 0x100cc], 0
mov dword [edi + 0x100d0], 0x5b57a8
mov dword [edi + 0x100d4], 0x5b57c4
mov dword [edi + 0x100d8], 0
mov dword [edi + 0x100dc], 0
mov dword [edi + 0x100e0], 0
mov byte [edi + 0x100e4], 0
mov dword [edi + 0x100e8], 0
mov byte [edi + 0x100ec], 0
test esi, esi
je 0x4756d5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov dword [edi], 0x5c0efc
mov ecx, edi
mov dword [edi + 0x100f4], 0
mov eax, dword [edi]
mov dword [ebp - 0x44], edi
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x18], eax
test esi, esi
je 0x475702
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push dword [ebp + 0x14]
mov byte [ebp - 4], 0x19
mov ecx, edi
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi]
test ecx, ecx
je 0x47572d
mov eax, dword [ecx]
call dword [eax]
mov dword [esi], edi
mov ecx, edi
mov eax, dword [edi]
call dword [eax]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10