Function at 0x42a370
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c58d0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4f4970]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4970]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
mov ebp, dword [esp + 0x90]
mov esi, ecx
lea ecx, [esp + 0x1c]
mov edi, edx
mov dword [esp + 0x40], eax
call fcn.00409dd0
xor ebx, ebx
push str..fd.cfg
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8c], ebx
call fcn.00409e90
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push esi
push edx
mov byte [esp + 0x94], 1
call fcn.00426210
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 2
call fcn.00409f30
lea ecx, [esp + 0x20]
call fcn.00409f10
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], bl
call fcn.00409f10
lea ecx, [esp + 0x1c]
call fcn.0040e660
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00409e10
mov byte [esp + 0x88], 3
mov esi, dword [esp + 0x24]
cmp esi, ebx
jne 0x42a48d
push ebx
push 0x20
push 3
push ebx
push 1
push closesocket
lea ecx, [esp + 0x4c]
call fcn.0040e660
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x24], esi
cmp esi, 0xffffffff
jne 0x42a47e
xor esi, esi
mov dword [esp + 0x24], esi
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x42a5d0
push 0x30
lea eax, [esp + 0x50]
push ebx
push eax
mov byte [esp + 0x50], bl
mov dword [esp + 0x51], ebx
mov word [esp + 0x55], bx
mov byte [esp + 0x57], bl
call fcn.0046dea0
add esp, 0xc
mov dword [esp + 0x18], ebx
cmp esi, ebx
je 0x42a5df
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x38
lea edx, [esp + 0x50]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x42a5cc
cmp dword [esp + 0x18], 0x38
jne 0x42a5cc
mov esi, 0x4da2d4
lea eax, [esp + 0x44]
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x42a510
cmp cl, bl
je 0x42a50c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x42a510
add eax, 2
add esi, 2
cmp cl, bl
jne 0x42a4f0
xor eax, eax
jmp 0x42a515
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x42a5cc
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [edi], eax
mov eax, dword [esp + 0x60]
mov dword [edi + 4], ecx
xor edi, edi
cmp dword [esp + 0x74], ebx
mov dword [ebp], edx
mov dword [ebp + 4], eax
jle 0x42a5a0
push 0x28
call fcn.0046d5f3
add esp, 4
cmp eax, ebx
je 0x42a569
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov esi, eax
jmp 0x42a56b
xor esi, esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], esi
cmp eax, ebx
je 0x42a587
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x28
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x40]
mov dword [esi + 0x20], ebx
lea ebx, [esp + 0x20]
call fcn.00429ca0
inc edi
xor ebx, ebx
cmp edi, dword [esp + 0x74]
jl 0x42a540
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x42a5b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x34]
call fcn.00409f10
lea ecx, [esp + 0x1c]
call fcn.00409f10
mov eax, 1
jmp 0x42a5f3
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x42a5df
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x34]
call fcn.00409f10
lea ecx, [esp + 0x1c]
call fcn.00409f10
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0046da8a
add esp, 0x78
ret 8