Function at 0x452dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push bind
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
mov byte [esp + 0x50], 0
mov ecx, 0x1f
lea edi, [esp + 0x51]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x452e24
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x80
lea edx, [esp + 0x5c]
push edx
push esi
mov dword [esp + 0x24], 0
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [ebx + 0x1c]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 8
lea eax, [ebx + 0x20]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea eax, [ebx + 0x10]
push eax
push esi
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [ebx + 0x14]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea eax, [ebx + 0x18]
push eax
push esi
call edi
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00417880
mov eax, dword [ebx + 0x10]
test eax, eax
mov dword [esp + 0xc], 0
jle 0x452f05
push 0
lea edx, [esp + 0x14]
push edx
push 0x10
lea eax, [esp + 0x20]
push eax
push esi
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.00417ac0
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x452eb8
mov eax, dword [ebx + 0x14]
test eax, eax
mov dword [esp + 0xc], 0
jle 0x452f6f
push 0
lea edx, [esp + 0x14]
push edx
push 0x18
lea eax, [esp + 0x44]
push eax
push esi
call edi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.00417b00
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x452f14
mov eax, dword [ebx + 0x18]
test eax, eax
mov dword [esp + 0xc], 0
jle 0x452fd4
mov edi, edi
push 0
lea edx, [esp + 0x14]
push edx
push 0x14
lea eax, [esp + 0x30]
push eax
push esi
call edi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub esp, 0x14
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x10], edx
push eax
mov ecx, ebx
call fcn.00417b60
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x452f80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [str.Itf_]
mov dl, byte [0x4bc2f0]
mov dword [esp + 0xd0], ecx
mov byte [esp + 0xd4], dl
xor eax, eax
mov ecx, 0x3e
lea edi, [esp + 0xd5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x50]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453010
lea edi, [esp + 0xd0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x453021
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [ebx + 0x28]
call fcn.00419240
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8