Function at 0x41eb30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4220
call fcn.0051a810
mov eax, dword [0x58f660]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push eax
mov dword [ebp - 0x4210], eax
mov dword [ebp - 0x421c], eax
mov dword [ebp - 0x4214], eax
lea eax, [ebp - 0x4214]
push eax
mov esi, ecx
push 0x200
push esi
mov dword [ebp - 0x4218], 0x200
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4218], eax
call ebx
mov ecx, dword [ebp - 0x4218]
or edx, 0xffffffff
cmp ecx, edx
jne 0x41ebb7
test eax, eax
je 0x41ebaa
mov dword [ebp - 0x4218], edx
mov dword [ebp - 0x4214], edx
jmp 0x41ebb7
cmp ecx, edx
jne 0x41ebb7
cmp dword [ebp - 0x4214], 0
je 0x41ebe3
push 0
lea ecx, [ebp - 0x421c]
push ecx
push 0x4200
lea edx, [ebp - 0x4208]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ebe3
cmp dword [ebp - 0x421c], 0x4200
je 0x41ebed
call ebx
test eax, eax
jne 0x41ee42
mov eax, dword [edi + 0x1c]
sub eax, 0x22
cdq
mov dword [ebp - 0x41d8], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x41d4], edx
dec eax
cdq
mov dword [ebp - 0x41e8], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x41e4], edx
cmp byte [eax + 0x75], 0
je 0x41ecb9
mov eax, dword [ebp - 0x41b8]
sub eax, 3
jmp 0x41ec30
mov ecx, dword [ebp - 0x41b4]
imul ecx, eax
mov dl, byte [ebp + ecx - 0x4008]
lea ecx, [ebp + ecx - 0x4008]
test dl, dl
jne 0x41ec52
mov cl, byte [ecx + 0x10]
test cl, cl
je 0x41ec55
inc eax
jmp 0x41ec30
mov edx, dword [ebp - 0x41b4]
lea ecx, [eax - 1]
imul ecx, edx
mov dword [ebp - 0x4210], eax
mov eax, dword [edi + 0x1c]
sub eax, 0x22
cdq
lea ecx, [ebp + ecx - 0x4008]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov ecx, dword [ebp - 0x41b4]
mov eax, dword [ebp - 0x41b8]
imul ecx, eax
lea eax, [ebp - 0x4008]
lea edx, [ebp - 0x420c]
mov dword [ebp - 0x420c], 0xffffffff
call fcn.0041f640
mov eax, dword [ebp - 0x420c]
not eax
mov dword [ebp - 0x420c], eax
mov dword [ebp - 0x41b0], eax
mov dword [ebp - 0x41f8], 0
mov ecx, dword [ebp - 0x41fc]
lea eax, [ebp - 0x4208]
lea edx, [ebp - 0x420c]
mov dword [ebp - 0x420c], 0xffffffff
call fcn.0041f640
mov eax, dword [ebp - 0x420c]
push 0
not eax
lea ecx, [ebp - 0x4208]
push 0x200
mov dword [ebp - 0x420c], eax
push ecx
mov ebx, 0x4200
mov dword [ebp - 0x41f8], eax
call fcn.0041f540
add esp, 0xc
test eax, eax
jne 0x41ee42
mov eax, dword [edi + 0x1c]
sub eax, 0x21
cdq
shld edx, eax, 9
push edx
shl eax, 9
push eax
lea edx, [ebp - 0x4208]
push edx
call fcn.0041f5c0
add esp, 0xc
test eax, eax
jne 0x41ee42
mov eax, dword [edi + 0x1c]
sub eax, 0x22
cdq
mov dword [ebp - 0x1d8], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x1d4], edx
dec eax
cdq
mov dword [ebp - 0x1f0], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x1ec], edx
sub eax, 0x21
cdq
mov dword [ebp - 0x1c0], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x1bc], edx
cmp byte [eax + 0x75], 0
je 0x41ede4
mov edx, dword [ebp - 0x1b4]
mov ecx, dword [ebp - 0x4210]
mov eax, dword [edi + 0x1c]
dec ecx
imul ecx, edx
sub eax, 0x22
cdq
lea ecx, [ebp + ecx - 0x4208]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov ecx, dword [ebp - 0x1b8]
mov eax, dword [ebp - 0x1b4]
imul ecx, eax
lea eax, [ebp - 0x4208]
lea edx, [ebp - 0x420c]
mov dword [ebp - 0x420c], 0xffffffff
call fcn.0041f640
mov eax, dword [ebp - 0x420c]
not eax
mov dword [ebp - 0x420c], eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1f8], 0
mov ecx, dword [ebp - 0x1fc]
lea eax, [ebp - 0x208]
lea edx, [ebp - 0x420c]
mov dword [ebp - 0x420c], 0xffffffff
call fcn.0041f640
mov eax, dword [ebp - 0x420c]
not eax
mov dword [ebp - 0x420c], eax
mov dword [ebp - 0x1f8], eax
mov eax, dword [edi + 0x1c]
sub eax, 0x21
cdq
shld edx, eax, 9
push edx
shl eax, 9
push eax
lea ecx, [ebp - 0x4208]
push ecx
call fcn.0041f540
add esp, 0xc
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00514194
mov esp, ebp
pop ebp
ret