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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497900
push 0x444780
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 fcn.0045aa20
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 0x42eb5f
jmp 0x42ee5c
push 0
push 0x8000080
push 3
push 0
push 1
push OleUIInsertObjectA
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 0x42eb89
jmp 0x42ee5c
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x58], 0x8000
mov eax, 0x8000
call fcn.004443d0
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 0x42ebcf
jmp 0x42ee5c
cmp dword [ebp + 0xc], 0xffffffff
jne 0x42ec5e
mov dword [ebp - 0x5c], 0
jmp 0x42ebeb
mov edx, dword [ebp - 0x5c]
add edx, 1
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x2c]
jae 0x42ec05
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x5c]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x42ec03
jmp 0x42ec05
jmp 0x42ebe2
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x2c]
jne 0x42ec16
mov dword [ebp + 0xc], 0
jmp 0x42ec5e
cmp dword [ebp - 0x5c], 0
jbe 0x42ec34
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x5c]
movsx edx, byte [ecx - 1]
cmp edx, 0xd
jne 0x42ec34
mov dword [ebp + 0xc], 0
jmp 0x42ec5e
mov eax, dword [ebp - 0x2c]
sub eax, 1
cmp dword [ebp - 0x5c], eax
jae 0x42ec57
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x5c]
movsx edx, byte [ecx + 1]
cmp edx, 0xd
jne 0x42ec57
mov dword [ebp + 0xc], 1
jmp 0x42ec5e
mov dword [ebp + 0xc], 2
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx*4 + 0x4b3554]
mov dword [ebp - 0x54], eax
push 0x1000
push 0
mov ecx, dword [ebp - 0x78]
add ecx, 0x34
call fcn.00430790
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 0x42edc8
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 0x42ecf6
cmp dword [ebp - 0x2c], 0x8000
jne 0x42ecf6
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 0x42ecef
jmp 0x42ee5c
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 0x42ed5f
mov ecx, dword [ebp - 0x1c]
add ecx, 0x100
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0045aa20
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 fcn.00443250
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call fcn.0045aa49
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 0x42edbc
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 0x42edba
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.0042e410
add esp, 4
push eax
mov ecx, dword [ebp - 0x78]
call fcn.0042e7bc
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
jmp 0x42edc3
mov dword [ebp - 0x40], 0
jmp 0x42ec9b
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.0042e410
add esp, 4
push eax
mov ecx, dword [ebp - 0x78]
call fcn.0042e7bc
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x1c], 1
mov ecx, dword [ebp - 0x3c]
and ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x20], ecx
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x68], 0
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x64], 0
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x30], 0x400
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x5c], 0
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x60], 0
mov dword [ebp - 0x24], 1
push 0xffffffffffffffff
push 0x1000
push 0
push 0
mov ecx, dword [ebp - 0x78]
call fcn.0042f760
mov dword [ebp - 4], 0xffffffff
call fcn.0042ee6a
jmp 0x42ee93
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