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

Disassembly:
sub esp, 0x174
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x178]
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov ebp, edx
mov eax, dword [esp + 0x188]
mov esi, ecx
mov dword [esp + 0x3c], ebp
push edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x19c], ebx
ja 0x405dce
jb 0x405da9
cmp dword [esp + 0x198], 0x150000
jae 0x405dce
push dword [esp + 0x198]
add eax, 0x38
push eax
push str._s_was_skipped_due_to_no_content_hash___u_bytes___1344_KB__n
push 0x808080
call fcn.00405109
add esp, 0x10
or eax, 0xffffffff
jmp 0x4060b6
push ebx
push dword [esp + 0x194]
push ebx
call fcn.004050a4
mov edi, eax
mov dword [esp + 0x34], edi
cmp edi, 0xffffffff
jne 0x405e09
push ebx
push dword [esp + 0x194]
push ebx
push str.No_hash_unit__d__d__d_n
push 0xff
call fcn.00405109
add esp, 0x14
xor eax, eax
jmp 0x4060b6
mov edx, dword [esi]
mov eax, dword [esi + 4]
imul ecx, edi, 0xc
dec eax
mov ebx, dword [ecx + edx]
cmp edi, eax
jne 0x405e1e
mov eax, dword [esi + 0xc]
jmp 0x405e22
mov eax, dword [ecx + edx + 0xc]
mov ecx, dword [esp + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
push 0x30000
push ebp
push 0
push 0
push dword [esp + 0x28]
mov byte [esp + 0x2b], 1
movlpd qword [esp + 0x50], xmm0
call fcn.00446d2d
test al, al
je 0x406098
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov ecx, 0x30000
cmp dword [esp + 0x2c], ecx
jne 0x406059
cmp byte [0x52aad6], 0
jne 0x406093
cmp byte [esi + 0x11], 0
je 0x405ee8
test byte [ebp], 0xc0
je 0x405ee8
push 0x60
lea edi, [esi + 0x14]
add ebp, 0x10
pop esi
push edi
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0xddf8a00b
push eax
push 0x7f0
push ebp
push ebp
mov dword [esp + 0x60], 0xb31fa6fe
mov dword [esp + 0x64], 0x569fdfd8
mov dword [esp + 0x68], 0x780f056a
call fcn.0047398e
add esp, 0x14
add ebp, 0x800
dec esi
jne 0x405e99
mov esi, dword [esp + 0x44]
mov ecx, 0x30000
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x40]
cmp byte [esp + 0x194], 0
lea eax, [esp + 0x58]
push eax
push ecx
push ebp
je 0x405f04
call fcn.004719e3
lea eax, [esp + 0x7c]
jmp 0x405f0d
call fcn.004726c0
lea eax, [esp + 0x70]
add esp, 0xc
mov dword [esp + 0x28], eax
cmp ebx, dword [esp + 0x20]
jb 0x405f59
push ebx
push dword [esp + 0x194]
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.004050a4
mov edi, eax
mov dword [esp + 0x34], edi
cmp edi, 0xffffffff
je 0x406075
mov edx, dword [esi]
mov eax, dword [esi + 4]
imul ecx, edi, 0xc
dec eax
mov ebx, dword [ecx + edx]
cmp edi, eax
jne 0x405f51
mov eax, dword [esi + 0xc]
jmp 0x405f55
mov eax, dword [ecx + edx + 0xc]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
call fcn.004c034e
mov edx, dword [esp + 0x19c]
mov ecx, dword [esp + 0x198]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x4efd40]
movss dword [esp + 0x38], xmm0
call fcn.004c034e
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 8]
movss xmm1, dword [esp + 0x38]
cvtsd2ss xmm0, xmm0
mov eax, dword [ecx]
divss xmm1, xmm0
cmp eax, dword [edx + ebx*8]
jne 0x405fed
mov eax, dword [ecx + 4]
cmp eax, dword [edx + ebx*8 + 4]
jne 0x405fed
cvttss2si eax, xmm1
push eax
push dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x20]
add eax, 0x38
push eax
lea eax, [esp + 0x88]
push str._s_content_hash_match_at_offset__I64u___i___
push eax
call fcn.004bad3c
add esp, 0x18
lea eax, [esp + 0x78]
push eax
push dword [0x52aa70]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x40601d
cvttss2si eax, xmm1
push eax
push dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x20]
add eax, 0x38
push eax
push str.___s_content_hash_mismatch_at_offset__I64u___i____n
push 0xff
call fcn.00405109
add esp, 0x18
mov byte [esp + 0x13], 0
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
mov eax, dword [esp + 0x1c]
inc ebx
push edx
add ecx, 0x30000
push 0x30000
push ebp
adc eax, 0
mov dword [esp + 0x24], ecx
push eax
push ecx
push dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x34], eax
call fcn.00446d2d
test al, al
jne 0x405e68
mov al, byte [esp + 0x13]
test al, al
jne 0x406098
mov eax, dword [esp + 0x14]
add eax, 0x38
push eax
push str._s_content_hash_mismatch_n
push 0xff
jmp 0x4060aa
push ebx
push dword [esp + 0x194]
push 0
push str.No_hash_unit__d__d__d_n
push 0xff
call fcn.00405109
add esp, 0x14
jmp 0x406059
push 0x4c
pop eax
jmp 0x4060b6
mov eax, dword [esp + 0x14]
add eax, 0x38
push eax
push str._s_content_hash_match_n
push 0x177d06
call fcn.00405109
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x174
ret