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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433e78
push 0x42e480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0x100
mov eax, dword [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x4210e3
jmp 0x4213e0
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x42110d
jmp 0x4213e0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x58], 0x8000
mov eax, 0x8000
call fcn.0042e450
mov dword [ebp - 0x7c], esp
mov dword [ebp - 0x18], esp
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x4c], ecx
push 0
lea edx, [ebp - 0x2c]
push edx
push 0x8000
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421153
jmp 0x4213e0
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4211e2
mov dword [ebp - 0x5c], 0
jmp 0x42116f
mov edx, dword [ebp - 0x5c]
add edx, 1
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x2c]
jae 0x421189
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x5c]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x421187
jmp 0x421189
jmp 0x421166
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x2c]
jne 0x42119a
mov dword [ebp + 0xc], 0
jmp 0x4211e2
cmp dword [ebp - 0x5c], 0
jbe 0x4211b8
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x5c]
movsx edx, byte [ecx - 1]
cmp edx, 0xd
jne 0x4211b8
mov dword [ebp + 0xc], 0
jmp 0x4211e2
mov eax, dword [ebp - 0x2c]
sub eax, 1
cmp dword [ebp - 0x5c], eax
jae 0x4211db
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x5c]
movsx edx, byte [ecx + 1]
cmp edx, 0xd
jne 0x4211db
mov dword [ebp + 0xc], 1
jmp 0x4211e2
mov dword [ebp + 0xc], 2
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx*4 + 0x43d910]
mov dword [ebp - 0x54], eax
push 0x1000
push 0
mov ecx, dword [ebp - 0x78]
add ecx, 0x38
call fcn.00422d10
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp - 0x2c]
jae 0x42134c
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x44]
movsx eax, byte [edx]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x2c]
jne 0x42127a
cmp dword [ebp - 0x2c], 0x8000
jne 0x42127a
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x8000
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421273
jmp 0x4213e0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x60]
mov byte [eax], cl
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1c]
jne 0x4212e3
mov ecx, dword [ebp - 0x1c]
add ecx, 0x100
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x64]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x20], eax
movsx ecx, byte [ebp - 0x60]
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x40]
movsx eax, byte [edx]
cmp ecx, eax
jne 0x421340
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x40]
movsx eax, byte [edx]
test eax, eax
jne 0x42133e
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x20]
mov byte [edx + ecx], 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
push eax
call fcn.004206d0
add esp, 4
push eax
mov ecx, dword [ebp - 0x78]
call fcn.00420d40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
jmp 0x421347
mov dword [ebp - 0x40], 0
jmp 0x42121f
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x38]
mov byte [ecx], 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
push edx
call fcn.004206d0
add esp, 4
push eax
mov ecx, dword [ebp - 0x78]
call fcn.00420d40
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x20], 1
mov ecx, dword [ebp - 0x3c]
and ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x6c], 0
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x68], 0
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x34], 0x400
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x60], 0
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x64], 0
mov dword [ebp - 0x24], 1
push 0xffffffffffffffff
push 0x1000
push 0
push 0
mov ecx, dword [ebp - 0x78]
call fcn.00421ce5
mov dword [ebp - 4], 0xffffffff
call fcn.004213ee
jmp 0x421417
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0x88]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8