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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov esi, dword [edi + 0xc]
mov eax, dword [edi + 0x44]
add esi, 0x38
mov dword [ebp - 0x14], esi
movsx ebx, word [esi + 2]
mov ecx, dword [esi + 4]
mov dword [ecx + ebx*8], eax
mov eax, dword [edi + 0x48]
mov dword [ecx + ebx*8 + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x4c]
mov dword [ecx + ebx*8 + 8], eax
mov eax, dword [edi + 0x50]
mov dword [ecx + ebx*8 + 0xc], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0xb4]
mov dword [ecx + ebx*8 + 0x10], eax
mov eax, dword [edi + 0xb8]
mov dword [ecx + ebx*8 + 0x14], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0xbc]
mov dword [ecx + ebx*8 + 0x18], eax
mov eax, dword [edi + 0xc0]
mov dword [ecx + ebx*8 + 0x1c], eax
mov eax, dword [esi + 8]
mov byte [ebx + eax], 0
mov eax, dword [esi + 8]
mov byte [ebx + eax + 1], 0
mov eax, dword [esi + 8]
mov byte [ebx + eax + 2], 0
mov eax, dword [esi + 8]
mov byte [ebx + eax + 3], 0
add ebx, 4
mov ecx, dword [edi]
mov dword [ebp - 0x20], ebx
test dword [ecx + 4], 0x7fff0000
jne 0x10047767
test dword [ecx + 8], 0x8000
je 0x100477c0
mov edx, dword [edi + 0x14]
push ebx
push esi
call fcn.1004cea0
mov edx, eax
add esp, 8
mov eax, dword [edi]
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x2e4]
test al, 2
jne 0x1004779e
mov ecx, dword [esi + 4]
mov eax, dword [edi]
mov edx, dword [ecx + ebx*8 - 0x18]
sub edx, dword [ecx + ebx*8 - 0x20]
mov dword [edi + 0x3c], edx
mov eax, dword [eax + 0x2e4]
mov edx, dword [ebp - 4]
test al, 0x10
jne 0x100477b3
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*8 - 8]
sub ecx, dword [eax + ebx*8 - 0x10]
mov dword [edi + 0xb0], ecx
test edx, edx
je 0x100477c0
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x10]
test dl, 2
jne 0x100477fc
push 0
push 0
lea ecx, [edi + 0x78]
mov edx, esi
call fcn.100472c0
movzx eax, word [edi + 0x80]
lea eax, [eax*8 + 0x20]
push eax
push dword [edi + 0x88]
push dword [edi + 0x8c]
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [edi + 0x10]
add esp, 0x14
mov esi, dword [esi + 4]
xor cl, cl
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea eax, [esi + ebx*8]
mov dword [ebp - 8], eax
test dl, 1
jne 0x10047831
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 8]
mov cl, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
test cl, cl
je 0x100478a9
cmp esi, eax
jae 0x100478a9
mov ebx, dword [ebp - 8]
nop dword [eax]
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
add esi, 8
cmp esi, ebx
jb 0x10047840
mov edx, dword [edi + 0x10]
mov ebx, dword [ebp - 0x20]
mov eax, dword [edi]
and edx, 2
mov eax, dword [eax + 0x2e4]
test al, 2
je 0x100478bc
test edx, edx
je 0x100478eb
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
mov eax, dword [ecx + ebx*8 - 0x20]
mov dword [edi + 0x44], eax
mov eax, dword [ecx + ebx*8 - 0x1c]
mov dword [edi + 0x48], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx + ebx*8 - 0x18]
mov dword [edi + 0x4c], eax
mov eax, dword [ecx + ebx*8 - 0x14]
mov dword [edi + 0x50], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x2e4]
jmp 0x100478ee
mov esi, dword [ebp - 0x14]
test al, 0x10
je 0x100478f6
test edx, edx
je 0x10047928
mov ecx, dword [esi + 4]
mov eax, dword [ecx + ebx*8 - 0x10]
mov dword [edi + 0xb4], eax
mov eax, dword [ecx + ebx*8 - 0xc]
mov dword [edi + 0xb8], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx + ebx*8 - 8]
mov dword [edi + 0xbc], eax
mov eax, dword [ecx + ebx*8 - 4]
mov dword [edi + 0xc0], eax
test edx, edx
jne 0x10047940
add word [edi + 0x80], 4
xor dl, dl
mov ecx, edi
call fcn.10047330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret