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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x108
mov ebx, dword [ebp + 8]
cmp dword [edx + 0xc], 0
mov esi, edx
mov dword [esp + 0x4c], ecx
je 0x476cec
mov eax, dword [esp + 0x4c]
movsd xmm1, qword [esi + 0x30]
movsd xmm2, qword [esi + 0x18]
movsd xmm0, qword [esi + 0x38]
movsd xmm3, qword [esi + 0x20]
lea edi, [esp + 0xb8]
mov ecx, 0x12
movsd qword [eax + 0x10], xmm1
movsd xmm1, qword [esi + 0x28]
movsd qword [esp + 0xb0], xmm2
movsd xmm2, qword [esi]
movsd qword [eax + 0x18], xmm0
movsd qword [eax], xmm3
movsd qword [eax + 8], xmm1
movsd xmm1, qword [esi + 0x10]
movsd qword [esp + 0x98], xmm2
add eax, 0x20
movsd qword [esp + 0xa8], xmm1
movsd xmm1, qword [esi + 8]
mov esi, ebx
movsd qword [esp + 0xa0], xmm1
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x98]
mov ecx, 0x1a
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x4771f4
mov eax, dword [ebx]
mov edx, dword [esi + 0x20]
cmp byte [ebx + 0x38], 0
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], edx
je 0x476d4e
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x24]
mov ecx, dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
je 0x476fc5
mov edx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
mov esi, 1
mov dword [esp + 0x28], eax
jmp 0x4771a3
mov edx, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x1c], edi
mov edi, dword [ebx + 0x24]
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 8]
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x44], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 4], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x24]
test eax, eax
jne 0x47724c
mov eax, dword [esp + 4]
test eax, eax
jne 0x477255
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x477214
mov edx, dword [esp + 0x40]
cmp edx, edi
je 0x477194
add edi, 0xffffffe0
jmp 0x476dfb
cmp edi, edx
lea edi, [edi - 0x20]
je 0x47718e
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
cmp eax, dword [edi + 0x10]
sbb ecx, dword [edi + 0x14]
jae 0x477182
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
cmp eax, dword [edi + 8]
sbb ecx, dword [edi + 0xc]
jae 0x476df0
mov ebx, dword [esp + 0x3c]
mov eax, dword [edi + 4]
cmp dword [edi], ebx
sbb eax, dword [esp + 0x44]
jae 0x476df0
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], edi
mov eax, dword [esp + 0x54]
mov ecx, dword [edi + 0x18]
mov edx, dword [eax + 0x10]
cmp ecx, edx
jae 0x47725e
imul ebx, ecx, 0x150
add ebx, dword [eax + 0xc]
mov edx, ebx
lea ecx, [esp + 0x98]
push dword [esp + 0x48]
call fcn.00473640
add esp, 4
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x98], 0
mov dword [esp + 0x90], ebx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], ecx
je 0x476eb9
xor ebx, ebx
lea edx, [esp + 0x88]
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x58]
push eax
call fcn.00473a70
mov edx, dword [esp + 0x38]
add esp, 4
jmp 0x476f27
lea eax, [esp + 0xa0]
mov dword [esp + 0x50], ebx
mov ebx, ecx
movsd xmm0, qword [eax + 0x20]
lea eax, [esp + 0x68]
movsd qword [eax + 0x18], xmm0
lea eax, [esp + 0xa0]
movsd xmm0, qword [eax + 0x18]
lea eax, [esp + 0x68]
movsd qword [eax + 0x10], xmm0
lea eax, [esp + 0xa0]
movsd xmm0, qword [eax + 8]
movsd xmm1, qword [eax + 0x10]
lea eax, [esp + 0x68]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
lea eax, [esp + 0xa0]
mov eax, dword [eax + 4]
mov dword [esp + 0x60], eax
lea eax, [esp + 0xa0]
movsd xmm0, qword [eax - 4]
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x34], edx
mov dword [esi], edx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
movsd xmm0, qword [esp + 0x78]
test ebx, ebx
mov dword [esi + 4], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esi + 8], edx
mov edx, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x10], eax
mov ebx, dword [ebp + 8]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0x20], edx
mov dword [esp + 0x18], ecx
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x28], ecx
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x74]
mov dword [esi + 0x2c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x84]
movsd qword [esi + 0x30], xmm0
mov dword [esi + 0x3c], ecx
mov ecx, dword [esp + 0x80]
mov dword [esi + 0x38], ecx
je 0x476db4
jmp 0x476c62
mov eax, dword [esi + 0x2c]
mov edx, dword [esp + 0x24]
test ecx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
je 0x4771fc
mov eax, ecx
mov dword [esp + 0x98], 4
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x47713f
mov eax, dword [esp + 4]
mov dword [esp + 8], 0
mov dword [esp + 0x30], esi
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x40], edx
mov edx, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], eax
mov edi, ebx
xor ecx, ecx
mov dword [esp + 0x44], ebx
jmp 0x477062
mov ecx, dword [esp + 0xc]
mov ebx, edi
mov edx, eax
mov edi, ebx
sub edi, ecx
jbe 0x47713f
mov eax, edx
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 8]
shr edi, 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xc], ecx
add edi, ecx
lea ebx, [edi + edi*2]
cmp dword [esi + ebx*8 + 0x10], edx
ja 0x477050
mov edx, eax
jb 0x4770af
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
lea esi, [ecx + ebx*8]
mov ecx, dword [esp + 0x38]
cmp eax, dword [esi]
sbb ecx, dword [esi + 4]
jae 0x4770a3
mov ecx, dword [esp + 0xc]
mov ebx, edi
jmp 0x477058
cmp eax, dword [esi + 8]
mov ecx, dword [esp + 0x38]
sbb ecx, dword [esi + 0xc]
jb 0x4770b8
mov ebx, dword [esp + 0x2c]
inc edi
mov ecx, edi
jmp 0x477058
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + ebx*8 + 0x14]
cmp ecx, dword [esp + 0x3c]
mov eax, ecx
mov dword [esp + 0xc], ecx
jae 0x477271
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x44]
cmp eax, dword [esp + 0x9c]
jne 0x477103
mov edx, dword [esp + 8]
lea ecx, [esp + 0x98]
call fcn.0047b4a0
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0xa0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
inc edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 8]
mov dword [edx + ecx*4], eax
inc ecx
sub ebx, edi
lea eax, [edi + edi*2]
mov edi, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 0xa0], ecx
lea edx, [edx + eax*8]
mov dword [esp + 0x10], edx
mov edx, edi
jne 0x47703f
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
lea eax, [ecx + eax*4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x44]
mov edx, dword [eax + 0x40]
mov eax, dword [edi]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
add eax, 8
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
jmp 0x4771a3
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], edi
mov byte [eax + 0x38], 1
jmp 0x477194
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], edx
mov dword [esp + 4], 0
mov eax, 3
xor esi, esi
mov ebx, dword [esp + 0x4c]
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x18]
mov dword [ebx + 0xc], edi
mov esi, dword [esp + 0x28]
mov dword [ebx + 0x10], edx
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x14], esi
mov esi, dword [esp + 0xc]
mov dword [ebx + 0x18], edx
mov edx, dword [esp + 8]
mov dword [ebx + 0x1c], esi
mov esi, dword [esp + 4]
mov dword [ebx + 0x20], edx
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x34], ecx
mov byte [ebx + 0x78], 2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x477214
mov dword [esp + 4], 0
mov eax, 3
jmp 0x4771a1
mov ecx, eax
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, ecx
mov dword [esp + 0x28], eax
mov eax, 4
jmp 0x4771a3
mov edi, dword [esp + 0x1c]
jmp 0x476d34
mov dword [esp + 0x24], edx
jmp 0x476fde
mov dword [esp + 0x30], esi
push 0x4c849c
call fcn.00446c40
add esp, 4
jmp 0x477286
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
push 0x4c84e8
call fcn.00446c40
add esp, 4
ud2