Function at 0x424100
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x42f068]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 8
call fcn.004016a0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x3c], 2
mov eax, dword [ebp + 8]
push eax
push 0x4312c4
lea ecx, [ebp - 0x100]
push ecx
call fcn.00403d70
add esp, 0xc
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
call fcn.00401740
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x100]
call fcn.00401680
cmp dword [ebp - 4], 0xffffffff
jne 0x4241e5
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x3c], 1
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00401780
mov dword [ebp - 0x14], 0
jmp 0x4241b3
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.0040b950
cmp dword [ebp - 0x14], eax
jge 0x4241de
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00401900
add eax, 0x24
mov ecx, eax
call fcn.004016e0
jmp 0x4241aa
mov al, 1
jmp 0x4244cc
mov dword [ebp - 0x10], 3
mov dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
jle 0x424260
cmp dword [ebp - 8], 0
jne 0x424260
mov eax, dword [ebp + 8]
push eax
push 0x4312c4
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00403d70
add esp, 0xc
mov dword [ebp - 0x130], eax
push 0x42bb70
mov ecx, dword [ebp - 0x130]
call fcn.00401740
push eax
call fcn.004105d1
add esp, 8
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x11c]
call fcn.00401680
cmp dword [ebp - 8], 0
jne 0x42425e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
jmp 0x4241f3
cmp dword [ebp - 8], 0
jne 0x42426d
xor al, al
jmp 0x4244cc
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00410e92
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00410d9a
add esp, 4
mov dword [ebp - 0xc], eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00410e92
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov dword [ebp - 0x18], 0
jmp 0x4242b7
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.0040b950
cmp dword [ebp - 0x18], eax
jge 0x4244be
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00401900
mov dword [ebp - 0x70], eax
push 0
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00410e92
add esp, 0xc
test eax, eax
je 0x42432a
mov ecx, dword [ebp - 0x70]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00401930
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.0040b950
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00401900
add eax, 0x24
mov ecx, eax
call fcn.004016e0
jmp 0x4242ae
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
mov ecx, dword [edx + 4]
sub ecx, dword [eax]
add ecx, 1
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.0040e7c6
add esp, 4
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x74]
push edx
push 1
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00410b58
add esp, 0x10
cmp dword [ebp - 0x74], eax
je 0x4243c1
mov ecx, dword [ebp - 0x70]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00401930
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.0040b950
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00401900
add eax, 0x24
mov ecx, eax
call fcn.004016e0
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
push eax
call fcn.004108ad
add esp, 4
jmp 0x4242ae
lea ecx, [ebp - 0xe0]
push ecx
call dword [0x4312b4]
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0xe0]
push ecx
call dword [0x4312b8]
lea edx, [ebp - 0xe0]
push edx
call dword [0x4312bc]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.004108ad
add esp, 4
xor edx, edx
mov word [ebp - 0x28], dx
lea eax, [ebp - 0x68]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xe4], 0
jmp 0x42442f
mov ecx, dword [ebp - 0xe4]
add ecx, 1
mov dword [ebp - 0xe4], ecx
cmp dword [ebp - 0xe4], 0x10
jge 0x424464
mov edx, dword [ebp - 0xe4]
movzx eax, byte [ebp + edx - 0x88]
push eax
push str._02X
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
add edx, 4
mov dword [ebp - 0x1c], edx
jmp 0x424420
push 0x40
mov ecx, dword [ebp - 0x70]
add ecx, 8
call fcn.00401740
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040edf9
add esp, 0xc
test eax, eax
je 0x4244b9
mov ecx, dword [ebp - 0x70]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00401930
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.0040b950
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00401900
add eax, 0x24
mov ecx, eax
call fcn.004016c0
jmp 0x4242ae
mov eax, dword [ebp - 8]
push eax
call fcn.00410fdf
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0040e7d1
mov esp, ebp
pop ebp
ret