Function at 0x415180
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5cce3b
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x613ad0]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x27c]
lea edx, [esp + 0x68]
mov dword [esp + 0x28], ecx
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4151d0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4152db
call fcn.0057e772
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x415224
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x7d01
mov dword [esp + 0x278], 0
call fcn.0057f7a1
test eax, eax
je 0x415260
push 0x7d01
push eax
lea ecx, [esp + 0x1c]
call fcn.00403630
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x16c]
push esi
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea eax, [esp + 0x170]
push eax
call fcn.00590222
lea eax, [esi - 0x10]
mov dword [esp + 0x274], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4152af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.005aac48
add esp, 0x264
ret 4
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0xe
lea edx, [esp + 0x64]
push edx
push ebx
mov dword [esp + 0x38], eax
call esi
test eax, eax
je 0x4152af
cmp dword [esp + 0x18], 0xe
jne 0x4152af
push 0
lea eax, [esp + 0x1c]
push eax
push 0x28
lea ecx, [esp + 0x3c]
push ecx
push ebx
call esi
test eax, eax
je 0x4152af
cmp dword [esp + 0x18], 0x28
jne 0x4152af
movzx eax, word [esp + 0x3e]
sub eax, 1
je 0x415350
sub eax, 3
je 0x415349
sub eax, 4
je 0x415342
xor ebp, ebp
jmp 0x415355
mov ebp, 0x100
jmp 0x415355
mov ebp, 0x10
jmp 0x415355
mov ebp, 2
mov eax, dword [esp + 0x50]
test eax, eax
je 0x415366
movzx edx, ax
mov dword [esp + 0x14], edx
jmp 0x41536a
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x30]
lea ecx, [eax + ebp*4]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4152af
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov dword [esp + 0x1c], eax
push 0
mov ecx, 0xa
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push edx
lea esi, [edi*4]
push esi
lea ecx, [esp + eax*4 + 0x28]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4152af
cmp dword [esp + 0x18], esi
jne 0x4152af
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
add eax, edx
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetDC]
cmp edi, ebp
mov dword [esp + 0x14], eax
je 0x415403
mov ecx, dword [esp + 0x2c]
add esi, ecx
push esi
sub ebp, edi
push ebp
push edi
push eax
call dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x62]
test eax, eax
je 0x415428
mov ecx, dword [esp + 0x24]
push 0
push 0
add eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x41544d
movzx eax, word [esp + 0x3e]
imul eax, dword [esp + 0x34]
add eax, 0x1f
shr eax, 5
imul eax, dword [esp + 0x38]
add eax, eax
add eax, eax
mov dword [esp + 0x44], eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x41546d
mov edx, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x4152af
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x44]
push eax
push edi
push ebx
mov ecx, ebp
call fcn.00413870
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x1c]
push 0
push edi
mov edi, dword [esp + 0x1c]
push ecx
push edi
mov ecx, ebp
call fcn.00413900
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
call edi
push esi
call edi
mov eax, 1
jmp 0x4152b1