Function at 0x476590
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 esi, dword [ebp + 8]
cmp dword [edx + 0xc], 0
mov eax, edx
mov ebx, ecx
je 0x476634
movsd xmm1, qword [eax + 0x30]
movsd xmm2, qword [eax + 0x18]
movsd xmm0, qword [eax + 0x38]
movsd xmm3, qword [eax + 0x20]
lea edi, [esp + 0xb8]
mov ecx, 0x12
movsd qword [ebx + 0x10], xmm1
movsd xmm1, qword [eax + 0x28]
movsd qword [esp + 0xb0], xmm2
movsd xmm2, qword [eax]
movsd qword [ebx + 0x18], xmm0
movsd qword [ebx], xmm3
movsd qword [ebx + 8], xmm1
movsd xmm1, qword [eax + 0x10]
movsd qword [esp + 0x98], xmm2
add ebx, 0x20
movsd qword [esp + 0xa8], xmm1
movsd xmm1, qword [eax + 8]
movsd qword [esp + 0xa0], xmm1
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x98]
mov ecx, 0x1a
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x476b7c
mov ecx, dword [esi]
mov edi, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
cmp byte [esi + 0x38], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 8], edi
mov edi, dword [eax + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x10]
je 0x47669d
mov edx, dword [eax + 0x18]
mov esi, dword [eax + 0x14]
test ecx, ecx
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x10], edx
je 0x476911
mov dword [esp], esi
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, eax
mov edi, 1
mov dword [esp + 0x1c], ecx
mov ecx, esi
jmp 0x476b30
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 0x24]
mov edx, dword [esp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x30]
mov dword [esp + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x2c]
cmp dword [esp + 0x24], 0
jne 0x476b84
mov eax, dword [esp]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x476b91
cmp esi, 2
jne 0x476b04
mov ecx, dword [esp + 0x38]
cmp ecx, edi
je 0x476a91
mov esi, dword [esp + 0x54]
add edi, 0xffffffe0
jmp 0x47674b
cmp edi, ecx
lea edi, [edi - 0x20]
je 0x476a8b
mov eax, dword [esp + 4]
cmp eax, dword [edi + 0x10]
mov eax, esi
sbb eax, dword [edi + 0x14]
jae 0x476a7f
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
cmp eax, dword [edi + 8]
sbb edx, dword [edi + 0xc]
jae 0x476740
mov edx, ebx
mov ebx, dword [esp + 0x40]
mov eax, dword [edi + 4]
cmp dword [edi], ebx
mov ebx, edx
sbb eax, dword [esp + 0x20]
jae 0x476740
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], edi
mov eax, dword [esp + 0x50]
mov ecx, dword [edi + 0x18]
mov edx, dword [eax + 0x10]
cmp ecx, edx
jae 0x476ba0
imul edx, ecx, 0x150
add edx, dword [eax + 0xc]
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x98]
mov dword [esp], edx
push esi
call fcn.00473020
add esp, 4
mov edx, dword [esp + 0x30]
mov eax, dword [esp]
cmp dword [esp + 0x98], 0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x94], esi
je 0x476812
mov dword [esp + 8], 0
lea edx, [esp + 0x88]
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x58]
push eax
call fcn.00473450
mov edx, dword [esp + 0x34]
add esp, 4
jmp 0x476861
lea ecx, [esp + 0xa0]
lea eax, [esp + 0x68]
mov dword [esp + 8], esi
movsd xmm0, qword [ecx + 0x20]
movsd xmm1, qword [ecx + 0x10]
movsd qword [eax + 0x18], xmm0
movsd xmm0, qword [ecx + 0x18]
movsd qword [eax + 8], xmm1
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [ecx + 8]
movsd qword [eax], xmm0
mov eax, dword [ecx + 4]
movsd xmm0, qword [ecx - 4]
mov ecx, dword [esp]
mov dword [esp + 0x60], eax
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], edx
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x64]
movsd xmm0, qword [esp + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x2c], ecx
test esi, esi
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 0xc], esi
mov esi, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov edx, dword [esp]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0xc]
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x20], edx
mov dword [esp + 0x10], ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x1c], ecx
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x84]
movsd qword [eax + 0x30], xmm0
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x28]
je 0x476706
jmp 0x4765b0
mov ecx, dword [eax + 0x2c]
test esi, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
je 0x476ae9
mov dword [esp + 0x28], ecx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 4
mov dword [esp + 0xa0], 0
mov dword [esp], esi
mov edx, dword [esi + 0xc]
mov esi, 0
test edx, edx
je 0x476aa8
mov eax, dword [esp]
xor esi, esi
mov dword [esp + 0x20], 4
mov dword [esp + 0x44], ebx
mov ecx, dword [eax + 8]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 4], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x40], eax
mov edi, edx
xor eax, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], esi
jmp 0x47699c
mov edx, edi
mov edi, edx
sub edi, eax
jbe 0x476aa4
mov ecx, dword [esp + 4]
shr edi, 1
add edi, eax
lea ebx, [edi + edi*2]
cmp dword [ecx + ebx*8 + 0x10], esi
ja 0x476990
jae 0x4769c0
inc edi
mov eax, edi
jmp 0x476992
mov ecx, dword [esp + 4]
lea esi, [ecx + ebx*8]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esi]
mov ecx, dword [esp + 0x3c]
sbb ecx, dword [esi + 4]
jae 0x4769da
mov edx, edi
jmp 0x4769ed
mov eax, dword [esp + 0x30]
inc edi
mov ecx, dword [esp + 0x3c]
cmp eax, dword [esi + 8]
sbb ecx, dword [esi + 0xc]
jb 0x4769f3
mov eax, edi
mov esi, dword [esp + 0x14]
jmp 0x476992
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x18]
mov ecx, dword [eax + ebx*8 + 0x14]
cmp ecx, dword [esp + 0x40]
mov eax, ecx
mov dword [esp + 0x38], ecx
jae 0x476baf
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x18], esi
cmp edx, dword [esp + 0x98]
jne 0x476a40
lea ecx, [esp + 0x98]
call fcn.0047ac80
mov edx, dword [esp + 0x9c]
mov esi, dword [esp + 0xa0]
jmp 0x476a46
mov esi, edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 4]
mov dword [edx + esi*4], eax
mov edx, dword [esp + 0x34]
lea eax, [edi + edi*2]
inc esi
mov dword [esp + 0xa0], esi
lea ecx, [ecx + eax*8]
sub edx, edi
mov dword [esp + 4], ecx
jne 0x476981
jmp 0x476aa8
mov esi, dword [ebp + 8]
mov dword [esi + 0x24], edi
mov byte [esi + 0x38], 1
jmp 0x476a91
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], ecx
mov dword [esp], 0
mov eax, 3
xor edi, edi
jmp 0x476b30
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x98]
xor edi, edi
mov dword [esp + 0x34], eax
mov eax, esi
mov esi, dword [esp + 0x9c]
lea eax, [esi + eax*4]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x40]
mov eax, dword [edx]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 8]
add eax, 8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
jmp 0x476b30
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 8]
cmp esi, 2
jne 0x476b04
mov dword [esp], 0
mov eax, 3
jmp 0x476a9d
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp], 0
xor edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, esi
mov dword [esp + 0x1c], eax
mov eax, 4
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 4]
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], ecx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp]
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], ecx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], ecx
mov byte [ebx + 0x78], 2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
jmp 0x476683
mov dword [esp + 0x28], ecx
mov dword [esp + 8], edx
mov esi, eax
jmp 0x476928
push 0x502efc
call fcn.0040cf20
add esp, 4
jmp 0x476bc4
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
push 0x502f48
call fcn.0040cf20
add esp, 4
ud2