Function at 0x42d130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b013
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [ecx + 4]
mov ebx, 0x10
mov dword [ebp - 0x3a4], ecx
cmp dword [edi + 0x14], ebx
jb 0x42d175
mov eax, dword [edi]
jmp 0x42d177
mov eax, edi
push eax
call fcn.004ee6fe
add esp, 4
test eax, eax
jne 0x42d41a
mov eax, 0xf
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x3a0]
mov byte [ebp - 4], 1
call fcn.00426320
lea eax, [ebp - 0x380]
mov byte [ebp - 4], 2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d1c2
sub eax, edx
push eax
lea eax, [ebp - 0x380]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040a3f0
lea ecx, [ebp - 0x3a0]
mov byte [ebp - 4], 1
call fcn.00426410
push str..tmp
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.00428fe0
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040a290
mov byte [ebp - 4], 1
cmp dword [ebp - 0x68], ebx
jb 0x42d221
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00535f7c
add esp, 4
cmp dword [edi + 0x14], ebx
jb 0x42d228
mov edi, dword [edi]
push edi
call fcn.004ee6fe
add esp, 4
test eax, eax
jne 0x42d26e
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x42d240
lea eax, [ebp - 0x2c]
push eax
call fcn.004ee6fe
add esp, 4
test eax, eax
jne 0x42d26e
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x42d258
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x42d263
lea eax, [ebp - 0x48]
push esi
push ecx
push eax
call fcn.004ee8f9
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x42d279
lea eax, [ebp - 0x2c]
push eax
call fcn.004ee6fe
add esp, 4
test eax, eax
jne 0x42d2b7
cmp dword [ebp - 0x18], ebx
jb 0x42d297
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00535f7c
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], ebx
jb 0x42d41a
mov edx, dword [ebp - 0x48]
push edx
jmp 0x42d412
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x42d2c2
lea eax, [ebp - 0x2c]
push esi
push 0x80
push 3
push esi
push 3
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42d318
cmp dword [ebp - 0x18], ebx
jb 0x42d2f1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00535f7c
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], ebx
jb 0x42d310
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00535f7c
add esp, 4
or eax, 0xffffffff
jmp 0x42d41c
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push esi
lea edx, [ebp - 0x3a8]
push edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
push 0x18
lea eax, [ebp - 0x60]
push eax
push edi
call ebx
cmp dword [ebp - 0x58], 0x34
je 0x42d368
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.00451de0
lea ecx, [ebp - 0x48]
call fcn.00451de0
or eax, 0xffffffff
jmp 0x42d41c
mov ecx, dword [ebp - 0x3a4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push esi
call eax
cmp dword [ebp - 0x60], 0
jbe 0x42d3c2
push 0xf1
lea ecx, [ebp - 0x170]
push 0
push ecx
call fcn.00534b40
add esp, 0xc
push 0
lea edx, [ebp - 0x3a8]
push edx
push 0xf1
lea eax, [ebp - 0x170]
push eax
push edi
call ebx
lea ecx, [ebp - 0x170]
push ecx
mov ecx, dword [ebp - 0x3a4]
call fcn.0042bfb0
inc esi
cmp esi, dword [ebp - 0x60]
jb 0x42d37c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x42d3d9
lea eax, [ebp - 0x2c]
push 0
push 0
push eax
call fcn.004eee67
add esp, 0xc
cmp dword [ebp - 0x18], esi
jb 0x42d3f7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00535f7c
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], esi
jb 0x42d41a
mov eax, dword [ebp - 0x48]
push eax
call fcn.00535f7c
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret