Function at 0x4624d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x15c
lea eax, [esp + 0x58]
push ebx
push ebp
push esi
push edi
push 0x104
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0x68]
push str.Preview.cfg
lea eax, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push edi
push 0x80
push 3
push edi
push edi
lea ecx, [esp + 0x7c]
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x46275c
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push edi
push edx
lea eax, [esp + 0x1c]
push 4
push eax
push esi
call ebx
test eax, eax
je 0x462755
cmp dword [esp + 0x10], 4
jne 0x462755
cmp dword [esp + 0x14], edi
jne 0x462755
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push edi
push 0x15
push esi
call ebp
lea ecx, [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x1c]
push 1
push edx
push esi
call ebx
cmp dword [esp + 0x14], edi
je 0x46263d
mov dword [0x5206d0], edi
mov dword [0x5206d4], edi
mov dword [0x5206d8], edi
mov dword [0x5206dc], edi
push edi
push edi
push 0x16
push esi
call ebp
lea ecx, [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x1c]
push 1
push edx
push esi
call ebx
cmp dword [esp + 0x14], edi
jne 0x462605
push edi
push edi
push 0x24
push esi
call ebp
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [edi + str.P_____________2222]
push 2
push ecx
push esi
call ebx
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + edi + 0x24]
push 2
push eax
push esi
call ebx
add edi, 4
cmp edi, 0x4c
jb 0x4625d7
xor edi, edi
push edi
push edi
push 0x14
push esi
call ebp
lea ecx, [esp + 0x10]
push edi
push ecx
push 0x10
push 0x5205b8
push esi
call ebx
cmp dword [esp + 0x10], 0x10
je 0x462679
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x520960], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x15c
ret
push edi
push edi
push 4
push esi
call ebp
lea eax, [esp + 0x10]
push edi
push eax
push 0x10
push 0x5206d0
push esi
call ebx
cmp dword [esp + 0x10], 0x10
je 0x4625a4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x520960], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x15c
ret
push edi
push edi
push 0x100
push esi
call ebp
lea edx, [esp + 0x10]
push edi
push edx
lea eax, [esp + 0x20]
push 2
push eax
push esi
mov dword [esp + 0x2c], edi
call ebx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push edi
push ecx
push edx
push 0x523cb0
push esi
call ebx
lea eax, [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
call ebx
cmp dword [esp + 0x10], 4
je 0x4626db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x520960], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x15c
ret
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0
test eax, eax
je 0x462738
mov ebp, 0x5209b8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [edi + 0x5205c8]
push 1
push eax
push esi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 2
push edx
push esi
call ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push ebp
push esi
call ebx
mov eax, dword [esp + 0x14]
add ebp, 0x104
dec eax
inc edi
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4626f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x520960], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x15c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x15c
ret