Function at 0x41b32d
Capabilities:
Read file on windows

Disassembly:
push 0x7c
mov eax, 0x4259fa
call fcn.004231c0
mov edi, ecx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x78], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
mov dword [ebp - 4], eax
cmp dword [ebp + 8], eax
je 0x41b6b0
cmp dword [ebp + 0x10], eax
je 0x41b6b0
push eax
push eax
push 3
push eax
push 1
push SysReAllocString
push dword [edx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x78], ebx
cmp ebx, 0xffffffff
je 0x41b6b0
xor eax, eax
mov edi, eax
mov dword [ebp - 0x6c], eax
push 8
pop ecx
mov esi, eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
call fcn.0040817c
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x6c]
and dword [eax], esi
and dword [eax + 4], esi
mov eax, dword [ebp - 0x6c]
mov dword [eax], ecx
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x74]
push eax
push 4
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b5cb
cmp dword [ebp - 0x74], 4
jne 0x41b5cb
mov ecx, dword [ebp - 0x70]
lea eax, [ecx - 5]
cmp eax, 0xfffa
ja 0x41b5cb
cmp edi, ecx
jae 0x41b41e
mov edi, ecx
push esi
mov dword [ebp - 0x7c], edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x70]
mov esi, eax
push 0
mov dword [esi], ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
push eax
add ecx, 0xfffffffc
lea eax, [esi + 4]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b5cb
mov ecx, dword [ebp - 0x70]
lea eax, [ecx - 4]
cmp dword [ebp - 0x74], eax
jne 0x41b5cb
movzx eax, word [esi + 0x38]
cmp eax, ecx
jae 0x41b5cb
movzx edx, word [esi + 0x3a]
cmp edx, ecx
jae 0x41b5cb
movzx eax, word [esi + 0x3c]
cmp eax, ecx
jae 0x41b5cb
movzx eax, word [esi + 0x3e]
cmp eax, ecx
ja 0x41b5cb
mov eax, dword [ebp + 8]
cmp dword [esi + 0x30], eax
jne 0x41b3ca
and dword [ebp - 0x30], 0
lea eax, [edx + esi]
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
push 0x100
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00417443
mov edi, dword [ebp - 0x80]
mov eax, 0x29e9
xor ebx, ebx
xor ax, word [edi]
jmp 0x41b4dd
push eax
lea ecx, [ebp - 0x40]
call fcn.004174af
inc ebx
mov eax, ebx
and eax, 0x3f
mov ax, word [eax*2 + 0x426b38]
xor ax, word [edi + ebx*2]
movzx eax, ax
test ax, ax
jne 0x41b4c2
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x41b510
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41b5b4
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x5c], eax
jb 0x41b539
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
dec ecx
and ecx, dword [ebp - 0x60]
mov ecx, dword [eax + ecx*4]
call fcn.00408323
sub dword [ebp - 0x5c], 1
jne 0x41b536
and dword [ebp - 0x60], 0
jmp 0x41b539
inc dword [ebp - 0x60]
push dword [ebp - 0x70]
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
push esi
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.004080b6
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x64]
lea eax, [ecx + 1]
cmp edx, eax
ja 0x41b574
push ecx
lea ecx, [ebp - 0x6c]
call fcn.0041b73f
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
lea ebx, [edx - 1]
and eax, ebx
mov dword [ebp - 0x60], eax
add eax, ecx
mov ecx, dword [ebp - 0x68]
and ebx, eax
cmp dword [ecx + ebx*4], 0
jne 0x41b59d
push 0x18
pop ecx
call fcn.0040817c
mov ecx, dword [ebp - 0x68]
mov dword [ecx + ebx*4], eax
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx + ebx*4]
lea eax, [ebp - 0x58]
push eax
call fcn.00408017
inc dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
call fcn.00408323
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040d0b1
mov ebx, dword [ebp - 0x78]
mov edi, dword [ebp - 0x7c]
jmp 0x41b3ca
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x60]
mov esi, ecx
mov ebx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x5c]
add eax, ecx
cmp esi, eax
je 0x41b622
test ebx, ebx
jne 0x41b5f9
xor eax, eax
jmp 0x41b5fb
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, esi
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x41b612
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00408270
mov ecx, dword [ebp - 0x60]
inc esi
jmp 0x41b5e8
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408017
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x41b664
mov ecx, dword [ebp - 0x60]
dec eax
add ecx, eax
mov eax, dword [ebp - 0x64]
dec eax
and ecx, eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + ecx*4]
call fcn.00408323
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
sub eax, 1
push 0
pop edx
cmove ecx, edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
test eax, eax
jne 0x41b637
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
test esi, esi
je 0x41b68a
dec esi
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x41b683
push 0x18
pop edx
mov ecx, eax
call fcn.004082f6
mov ecx, dword [ebp - 0x68]
test esi, esi
jne 0x41b66e
mov esi, dword [ebp - 0x64]
test ecx, ecx
je 0x41b698
mov edx, esi
shl edx, 2
call fcn.004082f6
mov ecx, dword [ebp - 0x6c]
xor ebx, ebx
push 8
pop edx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.004082f6
mov dword [ebp - 0x6c], ebx
jmp 0x41b6bb
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408017
lea ecx, [ebp - 0x28]
call fcn.00408323
mov eax, edi
call fcn.0042316a
ret