Function at 0x59006020
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5913dde0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call fcn.590ac380
mov dword [esp + 0x48], 0
mov edi, 0x20019
call fcn.590b2900
test eax, eax
je 0x59006067
mov edi, 0x20219
push edi
push str.SOFTWARELotusNotes
push 0x80000002
lea ecx, [esp + 0x2c]
call fcn.590ac4f0
test eax, eax
je 0x5900635f
mov eax, dword [0x5915584c]
mov dword [esp + 0xc], eax
push 0
push str.MultiUser
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 1
call fcn.590ac690
test eax, eax
jne 0x590060d5
lea ecx, [esp + 0x14]
push str.Path
push ecx
lea ecx, [esp + 0x28]
call fcn.590ace20
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 2
call fcn.59099f80
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x14]
jmp 0x59006263
mov al, byte [0x5919d4cc]
test al, al
jne 0x590060f6
push edi
push str.SoftwareLotusNotes
push 0x80000001
lea ecx, [esp + 0x2c]
call fcn.590ac4f0
mov esi, eax
jmp 0x59006140
mov edx, dword [0x5915584c]
mov dword [esp + 0x10], edx
push 0x5919d4cc
lea eax, [esp + 0x14]
push str._sSoftwareLotusNotes
push eax
mov byte [esp + 0x54], 3
call fcn.5909cc60
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
push ecx
push 0x80000003
lea ecx, [esp + 0x2c]
call fcn.590ac4f0
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x48], 1
call fcn.59099e00
test esi, esi
je 0x59006174
lea edx, [esp + 0x14]
push str.NotesIniPath
push edx
lea ecx, [esp + 0x28]
call fcn.590ace20
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 4
call fcn.59099f80
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 1
call fcn.59099e00
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59006268
mov ecx, dword [0x5915584c]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x48], 5
mov ebp, 8
push ebp
lea edx, [esp + 0x14]
push str.SoftwareLotusNotes_d.0
push edx
call fcn.5909cc60
mov al, byte [0x5919d4cc]
add esp, 0xc
test al, al
jne 0x590061cb
mov eax, dword [esp + 0x10]
push edi
push eax
push 0x80000001
lea ecx, [esp + 0x2c]
call fcn.590ac4f0
mov esi, eax
jmp 0x5900621a
mov ecx, dword [0x5915584c]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0x5919d4cc
push 0x59178af8
push eax
mov byte [esp + 0x58], 6
call fcn.5909cc60
mov ecx, dword [esp + 0x24]
add esp, 0x10
push edi
push ecx
push 0x80000003
lea ecx, [esp + 0x2c]
call fcn.590ac4f0
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x48], 5
call fcn.59099e00
test esi, esi
jne 0x5900622a
dec ebp
cmp ebp, 6
jge 0x59006197
jmp 0x5900625a
lea edx, [esp + 0x14]
push str.NotesIniPath
push edx
lea ecx, [esp + 0x28]
call fcn.590ace20
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 7
call fcn.59099f80
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 5
call fcn.59099e00
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x10]
call fcn.59099e00
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
cmp byte [eax + ecx - 1], 0x5c
jne 0x5900627d
push str.notes.ini
jmp 0x59006282
push str._notes.ini
lea ecx, [esp + 0x10]
call fcn.5909aa10
mov eax, dword [esp + 0xc]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x59006351
lea ecx, [esp + 0x28]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x590062f2
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x20]
call fcn.590b0e30
mov edi, dword [esp + 0x54]
push eax
mov ecx, edi
call fcn.590b0ac0
push edi
call fcn.590b1690
add esp, 4
push 0
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea edx, [ebp + 1]
push edx
call fcn.591315b0
add esp, 4
mov edi, eax
lea eax, [esp + 0x1c]
push 0
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x59006339
mov ecx, dword [esp + 0x50]
mov byte [edi + ebp], 0
push ecx
push edi
call fcn.59005e60
add esp, 8
push edi
call fcn.591315d9
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 0
call fcn.59099e00
lea ecx, [esp + 0x20]
call fcn.590ac540
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call fcn.590ac470
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x40
ret