Function at 0x41b930
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x254
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x250], eax
push ebp
mov ebp, dword [esp + 0x25c]
mov ecx, dword [ebp + 0x7c]
lea eax, [esp + 4]
push eax
push ecx
call fcn.0044d570
add esp, 8
test eax, eax
jne 0x41b993
mov edx, dword [ebp + 0x20]
push 0x40
push edx
push 0xef1c
push 0xef27
mov ecx, 0x5b2810
call fcn.00405df0
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00524d83
add esp, 0x254
ret
xor eax, eax
jmp 0x41b9a0
movzx ecx, word [eax + 0x5b2994]
mov word [esp + eax + 0x4c], cx
add eax, 2
test cx, cx
jne 0x41b9a0
lea eax, [esp + 0x4c]
add eax, 0xfffffffe
jmp 0x41b9c0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x41b9c0
mov ecx, dword [str.boot.img]
mov edx, dword [0x553e18]
push edi
push 0
push 0x20
mov dword [eax], ecx
mov ecx, dword [0x553e1c]
push 3
mov dword [eax + 4], edx
mov edx, dword [0x553e20]
push 0
mov dword [eax + 8], ecx
mov cx, word [0x553e24]
push 0
mov dword [eax + 0xc], edx
push closesocket
lea edx, [esp + 0x68]
push edx
mov word [eax + 0x10], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ba5c
mov eax, dword [esp + 8]
push eax
call fcn.0044d800
mov ecx, dword [ebp + 0x20]
add esp, 4
push 0x40
push ecx
push 0xef1c
push 0xef61
mov ecx, 0x5b2810
call fcn.00405df0
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00524d83
add esp, 0x254
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x41bab4
mov edx, dword [esp + 8]
push edx
call fcn.0044d800
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x20]
push 0x40
push eax
push 0xef1c
push 0xef61
mov ecx, 0x5b2810
call fcn.00405df0
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00524d83
add esp, 0x254
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
xor esi, esi
push esi
lea ecx, [esp + 0x18]
push ecx
push 0x200
push 0x5c4b28
push edi
call ebx
test eax, eax
je 0x41bb97
lea esp, [esp]
cmp dword [esp + 0x14], 0x200
jne 0x41bb97
push 0x200
push 0x5c4b28
mov eax, esi
cdq
push 0x200
push edx
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.0044d780
add esp, 0x18
test eax, eax
je 0x41bbc9
mov eax, 0x66666667
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov ecx, esi
sub ecx, eax
je 0x41bb7a
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp + 0x78], eax
cmp eax, 0x64
ja 0x41bb7a
push eax
lea edx, [esp + 0x1c]
push 0x553e08
push edx
call fcn.00525f70
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [ebp + 0x80]
call fcn.005081b1
mov ecx, dword [ebp + 0x78]
push ecx
lea ecx, [ebp + 0xd4]
call fcn.00412a00
push 0
lea edx, [esp + 0x18]
push edx
push 0x200
push 0x5c4b28
push edi
inc esi
call ebx
test eax, eax
jne 0x41bae0
mov edx, dword [esp + 0x10]
push edx
call fcn.0044d800
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x260]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.00524d83
add esp, 0x254
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0044d800
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x20]
push 0x40
push ecx
push 0xef1c
push 0xef62
mov ecx, 0x5b2810
call fcn.00405df0
xor eax, eax
jmp 0x41bbb0