Function at 0x41b880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x45d06c]
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 0x41b8b2
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
mov dword [ebx + 0x10], 0
jb 0x41b8af
mov eax, dword [ebx]
mov byte [eax], 0
call fcn.004192a0
test al, al
je 0x41b8ce
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00429462
mov esp, ebp
pop ebp
ret
sub esp, 8
lea ecx, [ebp - 0x20]
mov eax, esp
mov dword [eax], 0x4565c4
mov dword [eax + 4], 2
call fcn.0041c6d0
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 0x41b91e
mov ecx, edi
mov eax, edx
cmp word [eax], 0x2c
je 0x41b911
add eax, 2
sub ecx, 1
jne 0x41b901
jmp 0x41b91e
test eax, eax
je 0x41b91e
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
jne 0x41b920
mov eax, edi
push 0x4e
push 1
push eax
lea ecx, [ebp - 0x20]
call fcn.0041604f
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
cmp dword [esi + 0x14], 8
jb 0x41b940
mov esi, dword [esi]
push 0x40
push eax
push esi
call fcn.00437365
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x38], esi
cmp ecx, 8
jb 0x41b9a6
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x20]
cmp eax, 0x7fffffff
ja 0x41bc04
add eax, eax
cmp eax, 0x1000
jb 0x41b99d
test cl, 0x1f
jne 0x41bc04
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41bc04
sub ecx, eax
cmp ecx, 4
jb 0x41bc04
cmp ecx, 0x23
ja 0x41bc04
mov ecx, eax
push ecx
call fcn.0042945d
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 0x41b8bb
push 0x10000
call fcn.00429a9a
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.00437766
mov edx, eax
add esp, 0x10
mov dword [ebp - 0x34], edx
test edx, edx
je 0x41bbc5
test ebx, ebx
je 0x41bb8f
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 0x41ba47
lea eax, [edx + ecx]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edi, 0x10
jb 0x41ba30
mov eax, dword [ebx]
push ecx
lea edi, [eax + edx]
push esi
push edi
call fcn.0042a470
mov eax, dword [ebp - 0x28]
mov byte [edi + eax], 0
jmp 0x41bb89
mov eax, 0x7fffffff
sub eax, edx
cmp eax, ecx
jb 0x41bc0e
lea eax, [edx + ecx]
mov edi, eax
mov dword [ebp - 0x44], eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x41ba70
mov edi, 0x7fffffff
jmp 0x41ba97
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 0x41ba8d
mov edi, 0x7fffffff
jmp 0x41ba97
mov eax, dword [ebp - 0x24]
add eax, ecx
cmp edi, eax
cmovb edi, eax
mov dword [ebp - 0x24], edi
add edi, 1
je 0x41badc
xor al, al
jne 0x41bc09
cmp edi, 0x1000
jb 0x41bace
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x41bc09
push eax
call fcn.004296cc
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x41bad9
push edi
call fcn.004296cc
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 0x41bb66
mov ebx, dword [ebx]
push ebx
push edi
call fcn.0042b290
mov eax, dword [ebp - 0x28]
add esp, 0xc
add edi, dword [ebp - 0x2c]
push eax
push esi
push edi
call fcn.0042b290
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x3c]
inc eax
xor cl, cl
jne 0x41bc04
cmp eax, 0x1000
jb 0x41bb53
test bl, 0x1f
jne 0x41bc04
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x41bc04
sub ebx, eax
cmp ebx, 4
jb 0x41bc04
cmp ebx, 0x23
ja 0x41bc04
mov ebx, eax
push ebx
call fcn.0042945d
mov ebx, dword [ebp - 0x48]
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
jmp 0x41bb8c
push ebx
push edi
call fcn.0042b290
add edi, dword [ebp - 0x2c]
add esp, 0xc
push dword [ebp - 0x28]
push esi
push edi
call fcn.0042b290
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 0x41bbd9
push edi
push 0x10000
add ecx, edx
push 1
push esi
mov dword [ebp - 0x40], ecx
call fcn.00437766
mov edx, eax
add esp, 0x10
mov dword [ebp - 0x34], edx
test edx, edx
je 0x41bbc8
mov edi, dword [ebp - 0x40]
jmp 0x41b9f6
mov edi, dword [ebp - 0x38]
push edi
call fcn.00437473
add esp, 4
test eax, eax
jne 0x41bbd9
mov bl, 1
jmp 0x41bbdb
xor bl, bl
push edi
call fcn.00437514
add esp, 4
test esi, esi
je 0x41bbf1
push esi
call fcn.00429473
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429462
mov esp, ebp
pop ebp
ret
call fcn.0042e703
call fcn.0042a083
call fcn.004029a9
int3