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

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x3c
mov ecx, dword [ecx]
mov edx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
sub edx, ecx
mov esi, edx
sar esi, 2
imul esi, esi, 0x914c1bad
lea eax, [esi + esi]
add esi, 1
cmp eax, esi
cmovl eax, esi
mov esi, 4
cmp eax, esi
cmovl eax, esi
imul esi, eax, 0x94
mov eax, dword [ebx]
test ecx, ecx
je 0x476970
mov dword [esp], ecx
mov ecx, ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
call dword [eax + 0x10]
sub esp, 0xc
test al, al
jne 0x4766f0
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
mov dword [esp + 4], 4
mov dword [esp], esi
call dword [eax + 8]
mov ebx, dword [edi + 4]
mov edx, dword [edi]
sub esp, 8
mov dword [esp + 0x1c], eax
cmp ebx, edx
je 0x476c30
lea ecx, [ebx - 0x94]
lea eax, [edx + 8]
mov dword [esp + 0x20], esi
sub ecx, edx
mov dword [esp + 0x28], edi
shr ecx, 2
imul ecx, ecx, 0x114c1bad
and ecx, 0x3fffffff
mov ebp, ecx
imul ecx, ecx, 0x94
mov dword [esp + 0x24], ebp
lea ebx, [edx + ecx + 0x9c]
mov edx, dword [esp + 0x1c]
mov ebp, ebx
mov dword [esp + 0x18], edx
jmp 0x476641
movzx ecx, byte [eax + 0x84]
mov edi, dword [esp + 0x18]
mov byte [edi + 0x8c], 0
test cl, cl
jne 0x476700
mov edi, dword [esp + 0x18]
mov ecx, dword [eax + 0x88]
add eax, 0x94
mov dword [edi + 0x90], ecx
add edi, 0x94
mov dword [esp + 0x18], edi
cmp eax, ebp
je 0x4767f0
mov ebx, dword [esp + 0x18]
lea ecx, [ebx + 8]
mov dword [ebx], ecx
mov ebx, dword [eax - 8]
cmp ebx, eax
je 0x4767b8
mov esi, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi], ebx
mov dword [esi + 8], ecx
mov esi, dword [eax - 4]
mov edx, dword [esp + 0x18]
movzx ecx, byte [eax + 0x34]
mov dword [eax - 8], eax
mov dword [eax - 4], 0
mov dword [edx + 4], esi
mov byte [eax], 0
mov byte [edx + 0x3c], 0
test cl, cl
je 0x476600
lea ebx, [edx + 0x20]
lea ecx, [eax + 0x18]
mov dword [edx + 0x18], ebx
mov esi, dword [eax + 0x10]
cmp esi, ecx
je 0x476ab8
mov ebx, dword [eax + 0x18]
mov dword [edx + 0x18], esi
mov dword [edx + 0x20], ebx
mov edi, dword [eax + 0x14]
mov ebx, dword [esp + 0x18]
movq xmm2, qword [eax + 0x28]
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 0x30]
mov dword [eax + 0x14], 0
mov dword [ebx + 0x1c], edi
mov byte [eax + 0x18], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [ebx + 0x38], ecx
mov byte [ebx + 0x3c], 1
movq qword [ebx + 0x30], xmm2
jmp 0x476600
mov eax, dword [edi]
add eax, esi
mov dword [edi + 8], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [edi + 0x48]
lea ecx, [eax + 0x40]
mov dword [edi + 0x40], ebx
mov esi, dword [eax + 0x38]
cmp esi, ecx
je 0x476a38
mov ebx, dword [eax + 0x40]
mov dword [edi + 0x40], esi
mov dword [edi + 0x48], ebx
mov edi, dword [eax + 0x3c]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], 0
mov dword [edx + 0x44], edi
lea ebx, [edx + 0x64]
mov ecx, dword [eax + 0x50]
mov byte [eax + 0x40], 0
mov dword [edx + 0x5c], ebx
mov esi, dword [eax + 0x54]
mov dword [edx + 0x58], ecx
lea ecx, [eax + 0x5c]
cmp esi, ecx
je 0x4769f8
mov ebx, dword [eax + 0x5c]
mov dword [edx + 0x5c], esi
mov dword [edx + 0x64], ebx
mov edi, dword [eax + 0x58]
mov esi, dword [esp + 0x18]
mov dword [eax + 0x54], ecx
lea ecx, [eax + 0x74]
mov dword [eax + 0x58], 0
lea ebx, [esi + 0x7c]
mov dword [esi + 0x60], edi
mov byte [eax + 0x5c], 0
mov dword [esi + 0x74], ebx
mov esi, dword [eax + 0x6c]
cmp esi, ecx
je 0x476a78
mov edx, dword [esp + 0x18]
mov ebx, dword [eax + 0x74]
mov dword [edx + 0x74], esi
mov dword [edx + 0x7c], ebx
mov edi, dword [eax + 0x70]
mov ebx, dword [esp + 0x18]
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], 0
mov dword [ebx + 0x78], edi
mov byte [eax + 0x74], 0
mov byte [ebx + 0x8c], 1
jmp 0x47661a
mov esi, dword [eax - 4]
lea edx, [esi + 1]
cmp edx, 4
jae 0x4769a0
test edx, edx
je 0x476663
movzx ebx, byte [eax]
mov byte [ecx], bl
test dl, 2
je 0x476660
movzx esi, word [eax + edx - 2]
mov word [ecx + edx - 2], si
mov esi, dword [eax - 4]
jmp 0x476663
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add ebp, 1
imul ebp, ebp, 0x94
add eax, ebp
mov ebp, dword [edi]
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x47687e
mov ebx, dword [edi + 4]
cmp ebp, ebx
je 0x476c41
cmp byte [ebp + 0x8c], 0
jne 0x4768a0
cmp byte [ebp + 0x3c], 0
jne 0x476909
mov edx, dword [ebp]
lea eax, [ebp + 8]
cmp edx, eax
je 0x476953
mov eax, dword [ebp + 8]
mov dword [esp], edx
add ebp, 0x94
add eax, 1
mov dword [esp + 4], eax
call fcn.0054fb40
cmp ebx, ebp
jne 0x476820
mov ebx, dword [edi + 4]
mov edx, dword [edi]
mov ecx, dword [edi + 0xc]
sub ebx, edx
mov eax, dword [ecx]
mov dword [esp + 8], 4
mov dword [esp + 4], ebx
mov dword [esp], edx
call dword [eax + 0xc]
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [edi], eax
add eax, esi
mov dword [edi + 4], edx
mov dword [edi + 8], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x74]
lea eax, [ebp + 0x7c]
mov byte [ebp + 0x8c], 0
cmp edx, eax
je 0x4768c3
mov eax, dword [ebp + 0x7c]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.0054fb40
mov edx, dword [ebp + 0x5c]
lea eax, [ebp + 0x64]
cmp edx, eax
je 0x4768df
mov eax, dword [ebp + 0x64]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.0054fb40
mov edx, dword [ebp + 0x40]
lea eax, [ebp + 0x48]
cmp edx, eax
je 0x476829
mov eax, dword [ebp + 0x48]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.0054fb40
cmp byte [ebp + 0x3c], 0
je 0x476833
mov eax, dword [ebp + 0x30]
mov byte [ebp + 0x3c], 0
test eax, eax
je 0x476925
mov edx, dword [ebp + 0x38]
mov dword [esp], eax
sub edx, eax
mov dword [esp + 4], edx
call fcn.0054fb40
mov edx, dword [ebp + 0x18]
lea eax, [ebp + 0x20]
cmp edx, eax
je 0x476833
mov eax, dword [ebp + 0x20]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.0054fb40
mov edx, dword [ebp]
lea eax, [ebp + 8]
cmp edx, eax
jne 0x476841
add ebp, 0x94
cmp ebx, ebp
jne 0x476820
jmp 0x47685d
mov dword [esp], esi
mov ecx, ebx
mov dword [esp + 4], 4
call dword [eax + 8]
movd xmm0, eax
sub esp, 8
add eax, esi
movdqa xmm1, xmm0
mov dword [edi + 8], eax
punpckldq xmm1, xmm0
movq qword [edi], xmm1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [eax]
mov edi, eax
mov dword [ecx], esi
mov esi, dword [eax + edx - 4]
mov dword [ecx + edx - 4], esi
mov ebx, dword [esp + 0x18]
lea esi, [ebx + 0xc]
and esi, 0xfffffffc
sub ecx, esi
lea ebx, [edx + ecx]
sub edi, ecx
and ebx, 0xfffffffc
cmp ebx, 4
jb 0x476660
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x18]
and ebx, 0xfffffffc
xor ecx, ecx
mov eax, dword [edi + ecx]
mov dword [esi + ecx], eax
add ecx, 4
cmp ecx, ebx
jb 0x4769d8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
mov esi, dword [eax - 4]
jmp 0x476663
mov edi, dword [eax + 0x58]
lea esi, [edi + 1]
cmp esi, 4
jae 0x476af0
test esi, esi
je 0x47675b
movzx edx, byte [ecx]
mov byte [ebx], dl
test esi, 2
je 0x476758
movzx edi, word [ecx + esi - 2]
mov word [ebx + esi - 2], di
mov edi, dword [eax + 0x58]
jmp 0x47675b
mov edi, dword [eax + 0x3c]
lea esi, [edi + 1]
cmp esi, 4
jae 0x476b90
test esi, esi
je 0x476720
movzx edx, byte [ecx]
mov byte [ebx], dl
test esi, 2
je 0x47671d
movzx edi, word [ecx + esi - 2]
mov word [ebx + esi - 2], di
mov edi, dword [eax + 0x3c]
jmp 0x476720
mov edi, dword [eax + 0x70]
lea esi, [edi + 1]
cmp esi, 4
jae 0x476be0
test esi, esi
je 0x476794
movzx edx, byte [ecx]
mov byte [ebx], dl
test esi, 2
je 0x476791
movzx edi, word [ecx + esi - 2]
mov word [ebx + esi - 2], di
mov edi, dword [eax + 0x70]
jmp 0x476794
mov edi, dword [eax + 0x14]
lea esi, [edi + 1]
cmp esi, 4
jae 0x476b40
test esi, esi
je 0x4766a7
movzx edx, byte [ecx]
mov byte [ebx], dl
test esi, 2
je 0x4766a4
movzx edi, word [ecx + esi - 2]
mov word [ebx + esi - 2], di
mov edi, dword [eax + 0x14]
jmp 0x4766a7
mov edi, dword [ecx]
mov dword [ebx], edi
mov edi, dword [ecx + esi - 4]
mov dword [ebx + esi - 4], edi
mov edx, dword [esp + 0x18]
lea edi, [edx + 0x68]
mov edx, ecx
and edi, 0xfffffffc
sub ebx, edi
add esi, ebx
sub edx, ebx
and esi, 0xfffffffc
cmp esi, 4
jb 0x476758
mov dword [esp + 0x2c], eax
and esi, 0xfffffffc
xor ebx, ebx
mov eax, dword [edx + ebx]
mov dword [edi + ebx], eax
add ebx, 4
cmp ebx, esi
jb 0x476b23
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x58]
jmp 0x47675b
mov edi, dword [ecx]
mov dword [ebx], edi
mov edi, dword [ecx + esi - 4]
mov dword [ebx + esi - 4], edi
mov edx, dword [esp + 0x18]
lea edi, [edx + 0x24]
mov edx, ecx
and edi, 0xfffffffc
sub ebx, edi
add esi, ebx
sub edx, ebx
and esi, 0xfffffffc
cmp esi, 4
jb 0x4766a4
mov dword [esp + 0x2c], eax
and esi, 0xfffffffc
xor ebx, ebx
mov eax, dword [edx + ebx]
mov dword [edi + ebx], eax
add ebx, 4
cmp ebx, esi
jb 0x476b73
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x14]
jmp 0x4766a7
mov edi, dword [ecx]
mov dword [ebx], edi
mov edi, dword [ecx + esi - 4]
mov dword [ebx + esi - 4], edi
mov edx, dword [esp + 0x18]
lea edi, [edx + 0x4c]
mov edx, ecx
and edi, 0xfffffffc
sub ebx, edi
add esi, ebx
sub edx, ebx
and esi, 0xfffffffc
cmp esi, 4
jb 0x47671d
mov dword [esp + 0x2c], eax
and esi, 0xfffffffc
xor ebx, ebx
mov eax, dword [edx + ebx]
mov dword [edi + ebx], eax
add ebx, 4
cmp ebx, esi
jb 0x476bc3
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x3c]
jmp 0x476720
mov edi, dword [ecx]
mov dword [ebx], edi
mov edi, dword [ecx + esi - 4]
mov dword [ebx + esi - 4], edi
mov edx, dword [esp + 0x18]
lea edi, [edx + 0x80]
mov edx, ecx
and edi, 0xfffffffc
sub ebx, edi
add esi, ebx
sub edx, ebx
and esi, 0xfffffffc
cmp esi, 4
jb 0x476791
mov dword [esp + 0x2c], eax
and esi, 0xfffffffc
xor ebx, ebx
mov eax, dword [edx + ebx]
mov dword [edi + ebx], eax
add ebx, 4
cmp ebx, esi
jb 0x476c16
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x70]
jmp 0x476794
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x476862
jmp 0x47687e
mov edx, ebx
jmp 0x476862