Function at 0x41e640
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a5a3d
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x208
lea ecx, [esp + 0x42]
push ebx
push ecx
mov dword [esp + 0x34], eax
mov word [esp + 0x48], bx
call int.0048bd10
add esp, 0xc
push 0x104
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [0x4da734]
mov edx, dword [eax + 0xc]
mov ecx, 0x4da734
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push eax
push 0x4b7028
lea edi, [esp + 0x40]
mov dword [esp + 0x268], ebx
call fcn.0040e820
xor edi, edi
add esp, 8
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push ebx
push 0x80
push 3
push ebx
push 1
mov byte [esp + 0x274], 2
mov ecx, dword [esp + 0x4c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41e751
call fcn.004012e0
cmp eax, ebx
je 0x41e757
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41e738
push eax
call fcn.00487c06
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x260], 0
jmp 0x41ea45
mov dword [esp + 0x24], eax
mov edi, eax
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], esi
jne 0x41e7ae
call fcn.004012e0
cmp eax, ebx
jge 0x41e7aa
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41e788
push eax
call fcn.00487c06
add esp, 4
cmp edi, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x260], 0
je 0x41ea45
push edi
jmp 0x41ea3f
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp eax, ebx
ja 0x41e777
cmp esi, 0x100000
ja 0x41e777
mov ecx, esi
or ecx, eax
je 0x41e777
lea eax, [esi + 1]
lea ecx, [esp + 0x10]
call fcn.0043ca20
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41e7e0
mov edx, dword [esp + 0x18]
sub edx, eax
jne 0x41e7e9
call fcn.00489916
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x24]
push ecx
push esi
push eax
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x41e90c
call fcn.004012e0
cmp eax, ebx
jne 0x41e777
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e821
mov edx, dword [esp + 0x18]
sub edx, ecx
jne 0x41e82a
call fcn.00489916
mov ecx, dword [esp + 0x14]
add esi, ecx
cmp ecx, esi
mov edi, ecx
mov dword [esp + 0x2c], esi
jae 0x41e9b5
lea ebx, [ebx]
push 0x4b7054
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp eax, ebx
mov dword [esp + 0x20], eax
mov esi, eax
je 0x41e9b1
mov ecx, dword [esp + 0x28]
mov eax, 1
test byte [0x4dbefc], al
mov dword [ecx + 0x408], eax
jne 0x41e8d6
or dword [0x4dbefc], eax
mov byte [esp + 0x260], 3
xor eax, eax
mov ecx, 0x4dbec4
mov dword [0x4dbec0], 0x4c3f4c
mov dword [0x4dbec4], eax
mov dword [0x4dbec8], eax
mov dword [0x4dbecc], eax
mov dword [0x4dbed0], eax
mov dword [0x4dbed4], eax
mov dword [0x4dbed8], eax
call fcn.00401170
cmp eax, ebx
jl 0x41ead1
push 0x4ac3b0
mov dword [0x4dbedc], ebx
call fcn.0048858f
add esp, 4
mov byte [esp + 0x260], 2
push str.b_tb_
push 0x4dbec0
call fcn.004743e0
add esp, 8
cmp dword [esp + 0x20], edi
jbe 0x41e9a0
mov al, byte [esi]
cmp al, 0xa
je 0x41e9a0
cmp al, 0x23
je 0x41e915
sub esi, 1
cmp esi, edi
ja 0x41e8f2
jmp 0x41e9a0
cmp dword [esp + 0x20], esi
jmp 0x41e80b
test byte [0x4dbefc], 1
mov edx, dword [esp + 0x28]
mov dword [edx + 0x408], ebx
jne 0x41e98e
or dword [0x4dbefc], 1
mov byte [esp + 0x260], 4
xor eax, eax
mov ecx, 0x4dbec4
mov dword [0x4dbec0], 0x4c3f4c
mov dword [0x4dbec4], eax
mov dword [0x4dbec8], eax
mov dword [0x4dbecc], eax
mov dword [0x4dbed0], eax
mov dword [0x4dbed4], eax
mov dword [0x4dbed8], eax
call fcn.00401170
cmp eax, ebx
jl 0x41ead1
push 0x4ac3b0
mov dword [0x4dbedc], ebx
call fcn.0048858f
add esp, 4
mov byte [esp + 0x260], 2
push 0x4b70b8
push 0x4dbec0
call fcn.004743e0
add esp, 8
mov edi, dword [esp + 0x20]
add edi, 1
cmp edi, dword [esp + 0x2c]
jb 0x41e840
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x41e9cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x18]
cmp ecx, edi
jbe 0x41e9dd
call fcn.00489916
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x18]
mov esi, ecx
jbe 0x41e9ee
call fcn.00489916
mov ecx, dword [esp + 0x14]
cmp esi, edi
je 0x41ea15
mov eax, dword [esp + 0x18]
sub eax, edi
test eax, eax
lea ebx, [eax + esi]
jle 0x41ea0f
push eax
push edi
push eax
push esi
call fcn.00487e7d
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x18], ebx
xor ebx, ebx
cmp ecx, ebx
je 0x41ea22
push ecx
call fcn.00487c06
add esp, 4
mov byte [esp + 0x260], 0
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x41ea45
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4dbc5c], ebx
je 0x41ea5b
mov eax, dword [esp + 0x28]
mov dword [eax + 0x408], 1
mov ecx, dword [0x4dbc5c]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x408]
push ecx
push eax
push 0x4b7108
call fcn.00474370
push eax
call fcn.004743e0
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eaab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00488fa3
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.00401050
int3