Function at 0x41e8d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5800b2
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.00552600
mov eax, dword [0x6236f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 1
push 0
cmp word [esi + 0x20], bx
jne 0x41eaf8
mov edx, dword [esi + 4]
lea eax, [ebp - 0x1020]
push eax
push 4
lea ecx, [ebp - 0x101c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e98c
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov eax, dword [0x610024]
mov dword [ebp - 0x1018], eax
mov ecx, dword [esi + 8]
push ecx
lea edx, [ebp - 0x1018]
push 0x5a82a4
push edx
mov dword [ebp - 4], 0
call fcn.0040d8d0
add esp, 0xc
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x1038]
call fcn.0040e630
push 0x5fa440
lea ecx, [ebp - 0x1038]
push ecx
call fcn.00551aaa
mov edx, dword [ebp - 0x101c]
mov byte [edi + edx], 0
mov eax, dword [esi + 0x1c]
push eax
call fcn.0054e1ec
add esp, 4
mov byte [ebp - 0x1018], 0
mov ecx, dword [ebp - 0x1018]
push ecx
push eax
lea ecx, [ebp - 0x1030]
mov dword [ebp - 0x1034], eax
call fcn.0040b160
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x1034]
test ebx, ebx
jne 0x41ea23
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov ecx, dword [0x610024]
mov dword [ebp - 0x1018], ecx
mov edx, dword [esi + 8]
push edx
lea eax, [ebp - 0x1018]
push 0x5a826c
push eax
mov byte [ebp - 4], 2
call fcn.0040d8d0
add esp, 0xc
lea ecx, [ebp - 0x1018]
push ecx
lea ecx, [ebp - 0x102c]
call fcn.0040e630
push 0x5fa440
lea edx, [ebp - 0x102c]
push edx
call fcn.00551aaa
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x1020]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ea92
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov eax, dword [0x610024]
mov dword [ebp - 0x1018], eax
mov ecx, dword [esi + 8]
push ecx
lea edx, [ebp - 0x1018]
push 0x5a822c
push edx
mov byte [ebp - 4], 3
call fcn.0040d8d0
add esp, 0xc
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x102c]
call fcn.0040e630
push 0x5fa440
lea ecx, [ebp - 0x102c]
push ecx
call fcn.00551aaa
lea ecx, [ebp - 0x1014]
call fcn.00419230
push edi
push ebx
lea ecx, [ebp - 0x1014]
mov byte [ebp - 4], 4
call fcn.00419280
mov edx, dword [ebp - 0x101c]
lea ecx, [ebp - 0x1014]
mov dword [esi + 0x18], edx
mov byte [ebp - 4], 1
call fcn.00419240
lea ecx, [ebp - 0x1034]
mov dword [ebp - 4], 0xffffffff
call fcn.00433ed0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x18]
mov byte [edi + eax], 0
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1020]
push ecx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ead8
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov ecx, dword [0x610024]
mov dword [ebp - 0x101c], ecx
mov edx, dword [esi + 8]
push edx
lea eax, [ebp - 0x101c]
push 0x5a81ec
push eax
mov dword [ebp - 4], 5
call fcn.0040d8d0
add esp, 0xc
lea ecx, [ebp - 0x101c]
jmp 0x41ea06