Function at 0x480b10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
test esi, esi
push edi
jne 0x480b2e
lea eax, [esi + 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [ebp + 0x14], 0
je 0x480b46
mov eax, 1
lea ebx, [esp + 0x17]
mov edi, ebp
call fcn.00410220
jmp 0x480b63
mov eax, dword [ebp + 4]
test eax, eax
je 0x480b61
push eax
push 1
lea eax, [esp + 0x1f]
push 1
push eax
call fcn.0060860a
add esp, 0x10
jmp 0x480b63
xor eax, eax
cmp eax, 1
jne 0x480ba5
mov al, byte [esp + 0x17]
cmp al, 0x38
je 0x480bb2
cmp dword [ebp + 0x14], 0
je 0x480b91
mov eax, dword [ebp + 0x18]
cmp eax, 1
jb 0x480ba5
add eax, 0xffffffff
mov dword [ebp + 0x18], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x480ba5
movsx ecx, al
push ebp
push ecx
call fcn.00615754
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [ebp + 0x14], 0
je 0x480bca
mov eax, 1
lea ebx, [esp + 0x17]
mov edi, ebp
call fcn.00410220
jmp 0x480be7
mov eax, dword [ebp + 4]
test eax, eax
je 0x480be5
push eax
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.0060860a
add esp, 0x10
jmp 0x480be7
xor eax, eax
cmp eax, 1
jne 0x480ba5
mov al, byte [esp + 0x17]
cmp al, 0x42
je 0x480c0c
cmp dword [ebp + 0x14], 0
jne 0x480b76
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x480ba5
movsx eax, al
push ebp
push eax
jmp 0x480b9d
cmp dword [ebp + 0x14], 0
je 0x480c24
mov eax, 1
lea ebx, [esp + 0x17]
mov edi, ebp
call fcn.00410220
jmp 0x480c41
mov eax, dword [ebp + 4]
test eax, eax
je 0x480c3f
push eax
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.0060860a
add esp, 0x10
jmp 0x480c41
xor eax, eax
cmp eax, 1
jne 0x480ba5
mov al, byte [esp + 0x17]
cmp al, 0x49
je 0x480c71
cmp dword [ebp + 0x14], 0
jne 0x480b76
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x480ba5
movsx edx, al
push ebp
push edx
jmp 0x480b9d
cmp dword [ebp + 0x14], 0
je 0x480c89
mov eax, 1
lea ebx, [esp + 0x17]
mov edi, ebp
call fcn.00410220
jmp 0x480ca6
mov eax, dword [ebp + 4]
test eax, eax
je 0x480ca4
push eax
push 1
lea eax, [esp + 0x1f]
push 1
push eax
call fcn.0060860a
add esp, 0x10
jmp 0x480ca6
xor eax, eax
cmp eax, 1
jne 0x480ba5
mov al, byte [esp + 0x17]
cmp al, 0x4d
jne 0x480b70
cmp dword [ebp + 0x14], 0
je 0x480cd3
mov eax, 2
mov ebx, esi
mov edi, ebp
call fcn.00410220
shr eax, 1
jmp 0x480cec
mov eax, dword [ebp + 4]
test eax, eax
je 0x480cea
push eax
push 1
push 2
push esi
call fcn.0060860a
add esp, 0x10
jmp 0x480cec
xor eax, eax
cmp eax, 1
jne 0x480ba5
mov dx, word [esi]
rol dx, 8
mov word [esi], dx
cmp dword [ebp + 0x14], 0
je 0x480d12
lea ebx, [esp + 0x16]
mov edi, ebp
call fcn.00410220
jmp 0x480d2f
mov eax, dword [ebp + 4]
test eax, eax
je 0x480d2d
push eax
push 1
lea eax, [esp + 0x1e]
push 1
push eax
call fcn.0060860a
add esp, 0x10
jmp 0x480d2f
xor eax, eax
cmp eax, 1
jne 0x480ba5
movzx eax, byte [esp + 0x16]
test eax, eax
mov dword [esp + 0x1c], 0
je 0x480d58
push 0
add eax, 1
push eax
lea ebx, [esp + 0x24]
call fcn.004592b0
lea ebx, [esi + 4]
lea esi, [esp + 0x1c]
mov eax, ebx
call fcn.004017d0
mov edi, esi
call fcn.00401700
mov cl, byte [esp + 0x16]
test cl, cl
je 0x480de7
mov eax, ebx
call fcn.00459380
mov eax, dword [ebx]
test eax, eax
je 0x480d87
add eax, 4
jmp 0x480d89
xor eax, eax
movzx ecx, byte [esp + 0x16]
mov byte [ecx + eax], 0
mov eax, ebx
call fcn.00459380
mov ebx, dword [ebx]
test ebx, ebx
je 0x480da4
add ebx, 4
jmp 0x480da6
xor ebx, ebx
cmp dword [ebp + 0x14], 0
mov cl, byte [esp + 0x16]
movzx eax, cl
je 0x480dc0
mov edi, ebp
call fcn.00410220
mov cl, byte [esp + 0x16]
jmp 0x480ddc
mov edx, dword [ebp + 4]
test edx, edx
je 0x480dda
push edx
push eax
push 1
push ebx
call fcn.0060860a
mov cl, byte [esp + 0x26]
add esp, 0x10
jmp 0x480ddc
xor eax, eax
movzx edx, cl
cmp eax, edx
jne 0x480ba5
sub ecx, 1
test cl, 1
je 0x480e21
cmp dword [ebp + 0x14], 0
je 0x480e09
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
add eax, 1
cmp ecx, eax
ja 0x480e04
mov eax, ecx
mov dword [ebp + 0x18], eax
jmp 0x480e21
mov eax, dword [ebp + 4]
push 1
push 1
push eax
call fcn.006081d8
add esp, 0xc
test eax, eax
jne 0x480baa
cmp dword [ebp + 0x14], 0
je 0x480e3c
mov eax, 4
lea ebx, [esp + 0x18]
mov edi, ebp
call fcn.00410220
shr eax, 2
jmp 0x480e59
mov eax, dword [ebp + 4]
test eax, eax
je 0x480e57
push eax
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.0060860a
add esp, 0x10
jmp 0x480e59
xor eax, eax
cmp eax, 1
jne 0x480ba5
mov ecx, dword [esp + 0x18]
rol ecx, 0x10
mov eax, ecx
shr eax, 8
mov edx, ecx
shl edx, 8
xor eax, edx
and eax, 0xff00ff
shl ecx, 8
xor eax, ecx
cmp byte [esp + 0x2c], 0
mov dword [esp + 0x18], eax
je 0x480f2e
mov esi, dword [esp + 0x28]
push 0
lea ecx, [esi + 8]
call fcn.00487200
test eax, eax
jne 0x480baa
mov edx, dword [esp + 0x18]
test edx, edx
je 0x480ee7
cmp dword [ebp + 0x14], eax
mov ebx, dword [esi + 0xc]
je 0x480ec3
mov eax, edx
mov edi, ebp
call fcn.00410220
mov edx, dword [esp + 0x18]
jmp 0x480edf
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x480edd
push ecx
push edx
push 1
push ebx
call fcn.0060860a
mov edx, dword [esp + 0x28]
add esp, 0x10
jmp 0x480edf
xor eax, eax
cmp eax, edx
jne 0x480ba5
test dl, 1
je 0x480f70
cmp dword [ebp + 0x14], 0
je 0x480f12
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
add eax, 1
cmp ecx, eax
ja 0x480f4c
mov eax, ecx
mov dword [ebp + 0x18], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [ebp + 4]
push 1
push 1
push eax
call fcn.006081d8
add esp, 0xc
test eax, eax
je 0x480f70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
add eax, 1
and eax, 0xfffffffe
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x18], eax
je 0x480f59
mov ecx, dword [ebp + 0x18]
add ecx, eax
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
jbe 0x480f4c
mov eax, ecx
mov dword [ebp + 0x18], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [ebp + 4]
push 1
push eax
push ecx
call fcn.006081d8
add esp, 0xc
test eax, eax
jne 0x480baa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret