Function at 0x41bed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x48], ebx
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x41bf02
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
mov dword [ebx + 0x10], 0
jb 0x41beff
mov eax, dword [ebx]
mov byte [eax], 0
call fcn.00419010
test al, al
je 0x41bf1e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00427412
mov esp, ebp
pop ebp
ret
sub esp, 8
lea ecx, [ebp - 0x20]
mov eax, esp
mov dword [eax], 0x45441c
mov dword [eax + 4], 2
call fcn.0041b980
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x20]
add esp, 8
cmp dword [ebp - 0xc], 8
cmovae edx, dword [ebp - 0x20]
test edi, edi
je 0x41bf6e
mov ecx, edi
mov eax, edx
cmp word [eax], 0x2c
je 0x41bf61
add eax, 2
sub ecx, 1
jne 0x41bf51
jmp 0x41bf6e
test eax, eax
je 0x41bf6e
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
jne 0x41bf70
mov eax, edi
push 0x4e
push 1
push eax
lea ecx, [ebp - 0x20]
call fcn.00415da0
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
cmp dword [esi + 0x14], 8
jb 0x41bf90
mov esi, dword [esi]
push 0x40
push eax
push esi
call fcn.00432068
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x38], esi
cmp ecx, 8
jb 0x41bff6
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x20]
cmp eax, 0x7fffffff
ja 0x41c254
add eax, eax
cmp eax, 0x1000
jb 0x41bfed
test cl, 0x1f
jne 0x41c254
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41c254
sub ecx, eax
cmp ecx, 4
jb 0x41c254
cmp ecx, 0x23
ja 0x41c254
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
test esi, esi
je 0x41bf0b
push 0x10000
call fcn.00427a6a
add esp, 4
mov esi, eax
xor edi, edi
mov dword [ebp - 0x40], edi
push dword [ebp - 0x38]
push 0x10000
push 1
push esi
call fcn.00432469
mov edx, eax
add esp, 0x10
mov dword [ebp - 0x34], edx
test edx, edx
je 0x41c215
test ebx, ebx
je 0x41c1df
mov eax, dword [ebp + 8]
mov ecx, edx
sub eax, edi
mov edi, dword [ebx + 0x14]
cmp eax, edx
mov dword [ebp - 0x3c], edi
mov edx, dword [ebx + 0x10]
cmovb ecx, eax
mov dword [ebp - 0x2c], edx
mov eax, edi
mov dword [ebp - 0x28], ecx
sub eax, edx
cmp ecx, eax
ja 0x41c097
lea eax, [edx + ecx]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edi, 0x10
jb 0x41c080
mov eax, dword [ebx]
push ecx
lea edi, [eax + edx]
push esi
push edi
call fcn.004283e0
mov eax, dword [ebp - 0x28]
mov byte [edi + eax], 0
jmp 0x41c1d9
mov eax, 0x7fffffff
sub eax, edx
cmp eax, ecx
jb 0x41c25e
lea eax, [edx + ecx]
mov edi, eax
mov dword [ebp - 0x44], eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x41c0c0
mov edi, 0x7fffffff
jmp 0x41c0e7
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x24], eax
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x24]
cmp ecx, eax
jbe 0x41c0dd
mov edi, 0x7fffffff
jmp 0x41c0e7
mov eax, dword [ebp - 0x24]
add eax, ecx
cmp edi, eax
cmovb edi, eax
mov dword [ebp - 0x24], edi
add edi, 1
je 0x41c12c
xor al, al
jne 0x41c259
cmp edi, 0x1000
jb 0x41c11e
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x41c259
push eax
call fcn.0042769c
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x41c129
push edi
call fcn.0042769c
add esp, 4
mov edi, eax
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebx + 0x14], eax
push edx
jb 0x41c1b6
mov ebx, dword [ebx]
push ebx
push edi
call fcn.004291c0
mov eax, dword [ebp - 0x28]
add esp, 0xc
add edi, dword [ebp - 0x2c]
push eax
push esi
push edi
call fcn.004291c0
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x3c]
inc eax
xor cl, cl
jne 0x41c254
cmp eax, 0x1000
jb 0x41c1a3
test bl, 0x1f
jne 0x41c254
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x41c254
sub ebx, eax
cmp ebx, 4
jb 0x41c254
cmp ebx, 0x23
ja 0x41c254
mov ebx, eax
push ebx
call fcn.0042740d
mov ebx, dword [ebp - 0x48]
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
jmp 0x41c1dc
push ebx
push edi
call fcn.004291c0
add edi, dword [ebp - 0x2c]
add esp, 0xc
push dword [ebp - 0x28]
push esi
push edi
call fcn.004291c0
mov eax, dword [ebp - 0x28]
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
add esp, 0xc
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
sub eax, ecx
mov edi, dword [ebp - 0x38]
cmp eax, edx
jb 0x41c229
push edi
push 0x10000
add ecx, edx
push 1
push esi
mov dword [ebp - 0x40], ecx
call fcn.00432469
mov edx, eax
add esp, 0x10
mov dword [ebp - 0x34], edx
test edx, edx
je 0x41c218
mov edi, dword [ebp - 0x40]
jmp 0x41c046
mov edi, dword [ebp - 0x38]
push edi
call fcn.00432176
add esp, 4
test eax, eax
jne 0x41c229
mov bl, 1
jmp 0x41c22b
xor bl, bl
push edi
call fcn.00432217
add esp, 4
test esi, esi
je 0x41c241
push esi
call fcn.00427423
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret
call fcn.0042c6c3
call fcn.00426e1c
call fcn.004028e1
int3