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

Disassembly:
sub esp, 0x174
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
je 0x476fda
cmp dword [esi + 0x3c], 0x10
lea edi, [esi + 0x28]
jb 0x476e32
mov edi, dword [esi + 0x28]
mov ebx, dword [esi + 0x38]
lea ecx, [esp + 0x80]
xor eax, eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0x100
lea ebp, [ebx + edi]
cmp ebx, 0x100
jbe 0x476e70
push 1
mov eax, ecx
lea ecx, [esp + 0x78]
push ebx
push eax
call fcn.00405e1b
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
cmp edi, ebp
je 0x476e88
push ebx
add eax, ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x84]
add esp, 0xc
add eax, ebx
mov word [esp + 0x2c], 0x101
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x20]
mov word [esp + 0x38], 0x101
mov word [esp + 0x44], 0x101
mov eax, dword [eax]
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0x10
lea ecx, [eax + 8]
jb 0x476eb7
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
mov word [esp + 0x24], 0x105
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x84]
push eax
call fcn.004153a7
mov eax, dword [esi + 0x20]
add esp, 0x14
mov edi, 9
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
sub eax, 0
je 0x476f18
sub eax, 1
je 0x476fa7
sub eax, 1
jne 0x476f1d
mov edi, 2
mov eax, dword [esp + 0x74]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0xf
test eax, eax
je 0x476f4b
push dword [esp + 0x78]
lea ecx, [esp + 0x40]
push eax
call fcn.00408698
movups xmm0, xmmword [esp + 0x3c]
lea eax, [esp + 0x58]
mov dword [esp + 0x70], edi
push eax
movups xmmword [esp + 0x5c], xmm0
lea ecx, [esi + 4]
movq xmm0, qword [esp + 0x50]
movq qword [esp + 0x6c], xmm0
call fcn.0040f87b
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov dword [esi + 0x1c], eax
cmp edx, 0x10
jb 0x476fbb
mov ecx, dword [esp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x476fb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x476fb1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, 3
jmp 0x476f1d
push edx
push ecx
call fcn.004036ca
add esp, 8
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x80]
cmp eax, ecx
je 0x477057
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x477057
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
push eax
lea ecx, [esi + 4]
movlpd qword [esp + 0x44], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x58], 9
call fcn.0040f87b
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esi + 0x1c], eax
cmp edx, 0x10
jb 0x477057
mov ecx, dword [esp + 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47704d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47704d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
add esp, 8
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x174
ret