Function at 0x435300
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x84e258
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x8943b8]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8943b8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [esp + 0x80]
xor ebx, ebx
mov eax, edi
mov esi, ecx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x435352
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x58]
call fcn.00402200
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
push str.profile_
push ecx
mov dword [esp + 0x84], ebx
call fcn.0042bea0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 1
call fcn.004020d0
mov ebp, 0x10
cmp dword [esp + 0x4c], ebp
jb 0x4353b3
mov edx, dword [esp + 0x38]
push edx
call fcn.0081f6fa
add esp, 4
cmp dword [esp + 0x68], ebp
mov eax, dword [esp + 0x54]
jae 0x4353c1
lea eax, [esp + 0x54]
push ebx
push 0x80
push 3
push ebx
mov ebp, 1
push ebp
push ebp
push eax
mov dword [esp + 0x34], vtable.CFileReader.0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x4353ef
xor eax, eax
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x78], 2
jne 0x43541b
cmp dword [esp + 0x68], 0x10
mov dword [esp + 0x18], vtable.CFileReader.0
jb 0x435414
mov eax, dword [esp + 0x54]
push eax
call fcn.0081f6fa
add esp, 4
xor al, al
jmp 0x4355ce
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x435420
sub eax, edx
push eax
push edi
lea ecx, [esi + 0x98]
call fcn.00402200
mov ecx, esi
call fcn.00434e90
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x24]
push ecx
push 0x34
lea edx, [esi + 0x140]
push edx
push eax
call edi
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x24]
push ecx
push 0x34
lea edx, [esi + 0x174]
push edx
push eax
call edi
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebp
lea edx, [esi + 0x13c]
push edx
push eax
call edi
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebp
lea edx, [esi + 0x1a8]
push edx
push eax
call edi
add esi, 0x1ac
mov dword [esp + 0x24], 0x14
lea esp, [esp]
mov dword [esp + 0x28], 4
jmp 0x4354c0
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebp
lea edx, [esp + 0x23]
push edx
push eax
call edi
mov ecx, esi
call fcn.00433a50
cmp byte [esp + 0x17], 0
mov dword [esp + 0x2c], ebx
jbe 0x43558a
mov dword [esp + 0x30], ebx
lea ecx, [ecx]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0042cf90
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
add edi, eax
cmp eax, edi
jbe 0x43550d
call fcn.0081ff70
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
lea ebp, [edi - 1]
add edx, eax
cmp ebp, edx
ja 0x435520
cmp ebp, eax
jae 0x435525
call fcn.0081ff70
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
mov edi, ebp
mov ebx, ebp
shr edi, 3
and ebx, 7
cmp ebp, eax
jb 0x43553e
call fcn.0081ff70
mov eax, dword [esi + 8]
cmp eax, edi
ja 0x435547
sub edi, eax
mov edx, dword [esi + 4]
mov eax, dword [edx + edi*4]
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x24]
push ecx
push 2
lea ecx, [eax + ebx*2]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x2c]
movzx ecx, byte [esp + 0x17]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x4354f0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, 1
xor ebx, ebx
add esi, 0x14
sub dword [esp + 0x28], ebp
jne 0x4354c0
sub dword [esp + 0x24], ebp
jne 0x4354b0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x18], vtable.CFileReader.0
je 0x4355b8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x68], 0x10
jb 0x4355cc
mov edx, dword [esp + 0x54]
push edx
call fcn.0081f6fa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0081fb35
add esp, 0x68
ret 4