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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475311
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x49804c]
xor eax, ebp
mov dword [ebp - 0x40], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
mov eax, dword [ebp - 0x26c]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 8], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp + 8], 0
je 0x41a2bb
push 0
push 0x8030
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x26c]
add ecx, 0xc
mov eax, dword [ebp - 0x26c]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41a21e
xor eax, eax
jmp 0x41a7d3
mov ecx, dword [ebp - 0x26c]
add ecx, 0x20
call fcn.00419000
mov ecx, dword [ebp - 0x26c]
add ecx, 0xc
mov edx, dword [ebp - 0x26c]
mov eax, dword [edx + 0xc]
mov edx, dword [eax + 0x30]
call edx
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 4], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0x26c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x26c]
add ecx, 0x20
call fcn.00433ccd
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x26c]
add ecx, 0x20
call fcn.0041c300
push eax
mov ecx, dword [ebp - 0x26c]
add ecx, 0xc
mov eax, dword [ebp - 0x26c]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x26c]
add ecx, 0xc
mov edx, dword [ebp - 0x26c]
mov eax, dword [edx + 0xc]
mov edx, dword [eax + 0x4c]
call edx
jmp 0x41a56e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x2c], eax
push 0x208
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.0045bf00
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x24c]
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
call sub.PSAPI.DLL_GetModuleFileNameExW
push 0
push 0x80
push 3
push 0
push 1
push 1
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x41a31d
xor eax, eax
jmp 0x41a7d3
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x38], 0
push 0
push 0
mov edx, dword [ebp - 0x25c]
sub edx, 8
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x34]
push ecx
push 4
lea edx, [ebp - 0x268]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x34]
push ecx
push 4
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x268]
add ecx, 4
cmp dword [ebp - 0x25c], ecx
jb 0x41a3b1
cmp dword [ebp - 0x268], 0x64
jb 0x41a3b1
cmp dword [ebp - 0x38], 0x535746
je 0x41a3c2
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41a7d3
mov eax, dword [ebp - 0x25c]
sub eax, dword [ebp - 0x268]
sub eax, 8
mov dword [ebp - 0x258], eax
push 0
push 0
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x26c]
add ecx, 0x20
call fcn.00419000
push 0xffffffffffffffff
mov eax, dword [ebp - 0x268]
push eax
mov ecx, dword [ebp - 0x26c]
add ecx, 0x20
call fcn.00433ccd
mov ecx, dword [ebp - 0x26c]
add ecx, 0x20
call fcn.0041c300
mov dword [ebp - 0x250], eax
push 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x268]
push edx
mov ecx, dword [ebp - 0x26c]
add ecx, 0x20
call fcn.0041c300
push eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x34]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x26c]
cmp dword [edx + 4], 0
jne 0x41a48b
mov ecx, dword [ebp - 0x26c]
add ecx, 0x20
call fcn.00419000
xor eax, eax
jmp 0x41a7d3
lea ecx, [ebp - 0x261]
call fcn.0040ab90
mov dword [ebp - 4], 0
push 0x47da88
lea ecx, [ebp - 0x254]
call fcn.00404010
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax + 4]
push ecx
lea edx, [ebp - 0x260]
push edx
mov ecx, 0x499440
call fcn.00402c20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00403fd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.00428a50
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b030
lea ecx, [ebp - 0x2d]
call fcn.0040cc10
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x26c]
add ecx, 0x20
call fcn.0041c300
push eax
lea ecx, [ebp - 0x28]
call fcn.00428a50
push eax
lea ecx, [ebp - 0x2d]
call fcn.0040ce20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2d]
call fcn.0040cc20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00404090
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.00404090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x254]
call fcn.00404090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x261]
call fcn.0040aba0
mov ecx, dword [ebp - 0x26c]
add ecx, 0x20
call fcn.0041c300
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffffff
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x535746
je 0x41a5ba
cmp dword [ebp - 0x14], 0x535743
je 0x41a5ba
mov ecx, dword [ebp - 0x26c]
add ecx, 0x20
call fcn.00419000
xor eax, eax
jmp 0x41a7d3
push 4
push 0
mov edx, dword [ebp - 0x26c]
add edx, 0x38
push edx
call fcn.0045bf00
add esp, 0xc
push 3
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x26c]
add ecx, 0x38
push ecx
call fcn.0045bb90
add esp, 0xc
mov edx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax + 3]
mov byte [edx + 0x64], cl
mov edx, dword [ebp - 0x26c]
add edx, 0x3c
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + 4]
mov byte [eax], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + 5]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + 6]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + 7]
mov byte [eax + 3], dl
mov eax, dword [ebp - 0x26c]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x44], 0
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x48], 0
mov eax, dword [ebp - 0x1c]
add eax, 8
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x4c], eax
push 5
mov ecx, dword [ebp - 0x26c]
call fcn.0041bbc0
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
lea eax, [edx*4 + 0xc]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x26c]
call fcn.0041bbc0
xor edx, edx
mov ecx, 0x14
div ecx
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x50], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x26c]
call fcn.0041bbc0
xor edx, edx
mov ecx, 0x14
div ecx
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x26c]
call fcn.0041bbc0
xor edx, edx
mov ecx, 0x14
div ecx
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x54], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x26c]
call fcn.0041bbc0
xor edx, edx
mov ecx, 0x14
div ecx
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x5c], eax
mov ecx, dword [ebp - 0x26c]
add ecx, 0x50
call fcn.004062e0
mov ecx, dword [ebp - 0x26c]
add ecx, 0x50
call fcn.004062c0
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x54], 0
mov ecx, dword [ebp - 0x26c]
add ecx, 0x50
call fcn.004062a0
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x50], 0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 9]
shl ecx, 8
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x24]
movzx eax, byte [edx + 8]
add ecx, eax
mov edx, dword [ebp - 0x26c]
mov word [edx + 0x62], cx
mov eax, dword [ebp - 0x26c]
movzx eax, word [eax + 0x62]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov ecx, dword [ebp - 0x26c]
mov word [ecx + 0x62], ax
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0xb]
shl eax, 8
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0xa]
add eax, edx
mov ecx, dword [ebp - 0x26c]
mov word [ecx + 0x60], ax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.0045ba52
mov esp, ebp
pop ebp
ret 8