Function at 0x4bf4f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov edi, dword [ebp + 0x28]
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp edi, dword [0x521410]
je 0x4bf533
mov eax, dword [0x5213f8]
cmp eax, ebx
je 0x4bf533
push eax
call fcn.004c4622
add esp, 4
mov dword [0x5213f8], ebx
mov ecx, dword [0x5213fc]
push edi
push ecx
mov dword [0x521410], edi
call fcn.0043f430
mov esi, eax
mov eax, dword [0x5213f8]
cmp eax, ebx
jne 0x4bf5a5
push 0x4da470
push esi
call fcn.004c4e68
add esp, 8
mov dword [0x5213f8], eax
cmp eax, ebx
jne 0x4bf5a5
push edi
call fcn.0043fd80
test eax, eax
jne 0x4bf60c
push esi
call fcn.004c23c4
mov edx, dword [0x5213fc]
add esp, 4
push edi
push edx
call fcn.0043f430
mov esi, eax
push 0x4da470
push esi
call fcn.004c4e68
add esp, 8
mov dword [0x5213f8], eax
cmp eax, ebx
je 0x4bf568
cmp esi, ebx
je 0x4bf5b7
push esi
call fcn.004c23c4
mov eax, dword [0x5213f8]
add esp, 4
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
push ebx
push ecx
push edx
push eax
call fcn.004c533e
add esp, 0x10
test eax, eax
mov eax, dword [0x5213f8]
je 0x4bf626
push eax
call fcn.004c4622
mov ecx, dword [0x51ff6c]
add esp, 4
push ecx
mov ecx, 0x51ff10
mov dword [0x5213f8], ebx
call fcn.00434490
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c1c22
add esp, 0x24
ret 8
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c1c22
add esp, 0x24
ret 8
push 0x4e0a9c
call fcn.004bc380
test eax, eax
jne 0x4bf67c
mov edx, dword [0x5213f8]
push edx
call fcn.004c4622
add esp, 4
push 0x2ae
mov dword [0x5213f8], ebx
call fcn.00475cc0
push eax
mov eax, dword [0x51ff6c]
push eax
call fcn.004adf30
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c1c22
add esp, 0x24
ret 8
mov ecx, dword [0x5213f8]
push ecx
push 1
lea edx, [esp + 0x1c]
push 0x1a
push edx
call fcn.004c5285
add esp, 0x10
cmp eax, 1
je 0x4bf6eb
mov eax, dword [0x5213f8]
push eax
call fcn.004c4fb1
mov ecx, dword [0x5213f8]
push ecx
mov esi, eax
call fcn.004c4622
add esp, 8
cmp esi, ebx
je 0x4bf6ca
mov edx, dword [0x51ff6c]
push edx
mov ecx, 0x51ff10
call fcn.00434490
mov eax, esi
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 9
pop ebp
add eax, 2
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c1c22
add esp, 0x24
ret 8
push 0x80
call fcn.004c2cc7
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4bf726
mov eax, dword [0x5213f8]
push eax
call fcn.004c4622
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c1c22
add esp, 0x24
ret 8
movzx ecx, byte [esp + 0x15]
movzx edx, byte [esp + 0x14]
shl cx, 8
or cx, dx
mov word [esi + 2], cx
movzx eax, byte [esp + 0x17]
movzx ecx, byte [esp + 0x16]
shl ax, 8
or ax, cx
mov word [esi + 0x2e], ax
movzx edx, byte [esp + 0x19]
movzx eax, byte [esp + 0x18]
shl dx, 8
or dx, ax
mov word [esi + 6], dx
movzx ecx, byte [esp + 0x1d]
movzx eax, byte [esp + 0x1c]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esp + 0x1b]
or edx, eax
shl cx, 8
shl edx, 0x10
movzx eax, cx
movzx ecx, byte [esp + 0x1a]
or edx, eax
or edx, ecx
mov dword [esi + 8], edx
movzx edx, byte [esp + 0x21]
movzx ecx, byte [esp + 0x20]
shl dx, 8
movzx eax, dx
movzx edx, byte [esp + 0x1f]
or eax, ecx
shl dx, 8
movzx ecx, dx
movzx edx, byte [esp + 0x1e]
shl eax, 0x10
or eax, ecx
or eax, edx
mov dword [esi + 0xc], eax
movzx eax, byte [esp + 0x2b]
movzx ecx, byte [esp + 0x2a]
shl ax, 8
or ax, cx
mov word [esi + 0x20], ax
movzx edx, byte [esp + 0x2d]
movzx eax, byte [esp + 0x2c]
movzx ecx, word [esi + 0x20]
shl dx, 8
inc ecx
or dx, ax
push ecx
mov word [esi + 0x22], dx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
call fcn.004c2cc7
add esp, 4
mov dword [esi + 0x4c], eax
cmp eax, ebx
je 0x4bf70c
movzx eax, word [esi + 0x22]
cmp ax, bx
je 0x4bf839
movzx edx, ax
push edx
call fcn.004c2cc7
add esp, 4
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x4bf70c
mov eax, dword [0x5213f8]
movzx ecx, word [esi + 0x20]
mov edx, dword [esi + 0x4c]
push eax
push 1
push ecx
push edx
call fcn.004c5285
add esp, 0x10
cmp eax, 1
jne 0x4bf939
movzx eax, word [esi + 0x22]
cmp ax, bx
je 0x4bf886
mov ecx, dword [0x5213f8]
push ecx
movzx edx, ax
mov eax, dword [esi + 0x40]
push 1
push edx
push eax
call fcn.004c5285
add esp, 0x10
cmp eax, 1
jne 0x4bf939
movzx ecx, word [ebp + 0x20]
mov edx, dword [esi + 0x4c]
push esi
mov byte [ecx + edx], bl
call fcn.004bb420
movzx eax, word [ebp]
movzx ecx, al
shr ax, 8
cmp ax, bx
jne 0x4bf8b5
cmp ecx, 0x19
je 0x4bf8b5
cmp ecx, 0x1a
je 0x4bf8b5
cmp ecx, 0x28
jne 0x4bf8c6
cmp ax, 6
je 0x4bf8c6
cmp ax, 0xb
jne 0x4bf8d1
cmp ecx, 0x32
jne 0x4bf8d1
mov eax, dword [esi + 0x4c]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
movzx eax, word [esi + 0x20]
inc eax
push eax
call fcn.004c2cc7
add esp, 4
mov dword [esi + 0x3c], eax
cmp eax, ebx
je 0x4bf70c
mov ecx, dword [esi + 0x4c]
mov edx, eax
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x4bf8f0
call fcn.004bb6f0
mov dword [0x5213dc], eax
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x18], ecx
mov edx, dword [ebp + 0x1c]
mov dword [esi + 0x1c], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x14]
pop edi
mov dword [esi + 0x14], ecx
mov dword [edx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c1c22
add esp, 0x24
ret 8
mov eax, dword [0x5213f8]
push eax
call fcn.004c4fb1
mov ecx, dword [esp + 0x34]
add esp, 4
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 9
pop ebx
xor ecx, esp
add eax, 2
call fcn.004c1c22
add esp, 0x24
ret 8