Function at 0x46c430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5931b1
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5ee034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xcc], edi
call fcn.0046da10
mov eax, dword [ebx]
push 0x80
push 3
push ecx
mov dword [ebx + 4], eax
mov ecx, esi
push 0
mov byte [edi], 0
call fcn.00404530
mov edx, SysReAllocString
mov ecx, eax
call fcn.00451c20
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x46c60c
test esi, esi
je 0x46c60c
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xd4]
movlpd qword [ebp - 0xdc], xmm0
push eax
lea eax, [ebp - 0xdc]
movlpd qword [ebp - 0xd4], xmm0
push eax
push dword [ebp - 0x24]
movlpd qword [ebp - 0xe4], xmm0
call fcn.0046cd10
test al, al
je 0x46c5ab
mov edi, dword [ebp - 0xdc]
mov ecx, edi
mov eax, dword [ebp - 0xd8]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x46c5a5
jb 0x46c54d
cmp ecx, 0x4ffffe
ja 0x46c5a5
lea eax, [ebp - 0xc5]
mov byte [ebp - 0xc5], 0
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00454c60
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push edi
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp ecx, dword [ebp - 0xd8]
ja 0x46c5a5
jb 0x46c58f
cmp eax, edi
jae 0x46c5a5
mov byte [ebp - 0xc5], cl
lea ecx, [ebp - 0xc5]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00454c60
mov edi, dword [ebp - 0xcc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jne 0x46c62c
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x46c60c
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x46c5ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46c5ed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0057d635
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057d0c6
mov esp, ebp
pop ebp
ret 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc4]
call fcn.0052de20
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
sub ecx, eax
push edx
push ecx
push eax
lea ecx, [ebp - 0xc4]
call fcn.0052db40
test al, al
jne 0x46c6d6
mov byte [edi], 1
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x46c5ba
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x46c6b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46c6b2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0057d635
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jmp 0x46c5ba
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov edi, dword [ebp - 0x30]
mov ecx, 0x3e8
sub eax, edi
div ecx
mov esi, eax
mov dword [ebp - 0xe0], esi
test edx, edx
je 0x46c72f
mov eax, dword [ebp - 0xcc]
mov byte [eax], 1
mov byte [ebp - 4], 0
test edi, edi
je 0x46c5ba
mov ecx, dword [ebp - 0x28]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x46c72b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c5e7
push ecx
push edi
jmp 0x46c6b4
test esi, esi
jne 0x46c7d8
mov byte [ebp - 4], 0
test edi, edi
je 0x46c781
mov ecx, dword [ebp - 0x28]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x46c762
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c5e7
push ecx
push edi
call fcn.0057d635
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x46c7d1
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x46c7b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c5e7
push edx
push ecx
call fcn.0057d635
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov al, 1
jmp 0x46c60e
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3c]
push eax
push esi
mov ecx, eax
call fcn.0046d480
imul eax, esi, 0x3e8
push eax
push edi
push dword [ebp - 0x3c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x38]
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x3c]
add esp, 0xc
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x46c89c
xor eax, eax
xor ecx, ecx
nop
cmp dword [eax + esi], 0x23ab45db
jne 0x46c8f2
xor edx, edx
inc ecx
mov word [eax + esi + 0x282], dx
mov word [eax + esi + 0x382], dx
mov word [eax + esi + 0x3ca], dx
add eax, 0x3e8
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0xd0], eax
mov eax, 0x10624dd3
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x38]
sub ecx, esi
imul ecx
mov ecx, dword [ebp - 0x24]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
mov eax, dword [ebp - 0xd0]
jb 0x46c840
mov ecx, dword [ebx + 8]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebx]
mov esi, dword [ebp - 0xe0]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jbe 0x46c970
mov dword [ebp - 0xe0], 0x2762762
call fcn.004044c0
lea edx, [ebp - 0xe0]
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0xd8]
call fcn.00404a50
mov eax, dword [eax]
cmp esi, eax
ja 0x46cb6c
jmp 0x46c968
mov eax, dword [ebp - 0xcc]
mov byte [eax], 1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x46c6fc
mov ecx, dword [ebp - 0x34]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x46c944
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c5e7
push ecx
push esi
call fcn.0057d635
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
jmp 0x46c6fc
push esi
mov ecx, ebx
call fcn.0046d160
lea ecx, [ebp - 0xa4]
call fcn.0046a720
mov byte [ebp - 4], 3
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
sub ecx, esi
imul ecx
mov dword [ebp - 0x24], esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x46cacc
xor eax, eax
xor edi, edi
mov dword [ebp - 0xd0], eax
nop dword [eax + eax]
add eax, 4
add esi, eax
mov ecx, esi
call fcn.00404a30
push eax
push esi
lea ecx, [ebp - 0xa4]
call fcn.00404780
mov eax, dword [ebp - 0xd0]
mov esi, dword [ebp - 0x24]
add eax, 0x284
add esi, eax
mov ecx, esi
call fcn.00404a30
push eax
push esi
lea ecx, [ebp - 0x8c]
call fcn.00404780
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xd0]
lea esi, [ecx + 0x384]
mov eax, dword [edx + ecx + 0x3cc]
add esi, edx
mov dword [ebp - 0x5c], eax
mov eax, dword [edx + ecx + 0x3d0]
mov dword [ebp - 0x58], eax
mov eax, dword [edx + ecx + 0x3d4]
mov dword [ebp - 0x54], eax
mov eax, dword [edx + ecx + 0x3d8]
mov dword [ebp - 0x50], eax
mov eax, dword [edx + ecx + 0x3dc]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + ecx + 0x3e0]
mov ecx, esi
mov dword [ebp - 0x48], eax
call fcn.00404a30
push eax
push esi
lea ecx, [ebp - 0x74]
call fcn.00404780
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0xd0]
mov edx, dword [ebx + 4]
mov eax, dword [esi + ecx + 0x3e4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
cmp dword [ebx + 8], edx
je 0x46ca83
call fcn.004044b0
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, eax
call fcn.0046b1d0
add dword [ebx + 4], 0x68
jmp 0x46ca92
lea eax, [ebp - 0xa4]
mov ecx, ebx
push eax
push edx
call fcn.0046d820
mov ecx, dword [ebp - 0x38]
add esi, 0x3e8
mov dword [ebp - 0xd0], esi
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x3c]
inc edi
sub ecx, esi
mov dword [ebp - 0x24], esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
mov eax, dword [ebp - 0xd0]
jb 0x46c9b0
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0xcc]
mov byte [eax], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.00404570
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00404570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.00404570
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x46c737
mov ecx, dword [ebp - 0x34]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x46cb48
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c5e7
push ecx
push esi
call fcn.0057d635
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
jmp 0x46c737
call fcn.0040a230
int3