Function at 0x4a1b20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xdd0
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0xdcc], eax
mov eax, dword [0x4d5708]
push ebx
xor ebx, ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ebx
mov dword [0x4d5700], ebx
mov dword [0x4d5b70], ebx
mov dword [0x4d56f4], ebx
cmp eax, ebx
je 0x4a22c7
cmp byte [eax], bl
je 0x4a22c7
mov ecx, dword [0x4d5704]
push ebx
push 0x4b8a24
push ecx
push eax
call fcn.004319a0
mov edi, eax
cmp edi, ebx
je 0x4a22c7
mov ecx, dword [0x4d5708]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.0047b730
mov dword [esp + 0x18], 0x4d5b70
mov dword [0x4d56f8], ebx
push edi
mov dword [esp + 0x18], ebx
call fcn.004a75d6
add esp, 4
cmp eax, 0xffffffff
je 0x4a1bd0
cmp eax, 0x50
je 0x4a1bcc
push edi
inc ebx
call fcn.004a75d6
add esp, 4
cmp eax, 0xffffffff
jne 0x4a1bb8
mov dword [esp + 0x14], ebx
push edi
push 1
lea edx, [esp + 0x29]
push 3
push edx
mov byte [esp + 0x30], al
call fcn.004a5712
mov cl, byte [esp + 0x33]
mov dl, byte [esp + 0x32]
add esp, 0x10
cmp eax, 1
jne 0x4a1c47
movzx eax, cl
shl eax, 8
movzx esi, dl
or eax, esi
movzx esi, byte [esp + 0x21]
shl eax, 8
or eax, esi
movzx esi, byte [esp + 0x20]
shl eax, 8
or eax, esi
mov dword [esp + 0x10], eax
cmp eax, 0x4034b50
je 0x4a1c43
cmp eax, 0x6054b50
je 0x4a1c43
push 1
push 0xfffffffffffffffd
push edi
call fcn.004a59be
add esp, 0xc
test eax, eax
jne 0x4a1ffa
mov ebx, dword [esp + 0x14]
inc ebx
jmp 0x4a1ba6
mov ebx, dword [esp + 0x14]
movzx eax, cl
shl eax, 8
movzx ecx, dl
movzx edx, byte [esp + 0x21]
or eax, ecx
movzx ecx, byte [esp + 0x20]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [0x4d5700], ebx
cmp eax, 0x4034b50
jne 0x4a213c
push 0x5c
call fcn.004a3acc
mov esi, eax
add esp, 4
test esi, esi
je 0x4a2281
push edi
push 1
lea edx, [esp + 0x28]
push 0x1a
push edx
call fcn.004a5712
add esp, 0x10
cmp eax, 1
jne 0x4a2288
movzx eax, byte [esp + 0x21]
movzx ecx, byte [esp + 0x20]
shl ax, 8
or ax, cx
mov word [esi + 2], ax
mov edx, 0x14
mov word [esi], dx
movzx ax, byte [esp + 0x23]
movzx ecx, byte [esp + 0x22]
shl ax, 8
or ax, cx
mov word [esi + 0x2c], ax
mov word [esi + 4], ax
movzx ecx, byte [esp + 0x24]
movzx edx, ax
movzx eax, byte [esp + 0x25]
shl ax, 8
or ax, cx
mov word [esi + 6], ax
movzx eax, byte [esp + 0x28]
movzx ecx, byte [esp + 0x27]
mov dword [esp + 0x14], edx
movzx edx, byte [esp + 0x29]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0x26]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov dword [esi + 8], edx
movzx ecx, byte [esp + 0x2d]
movzx edx, byte [esp + 0x2c]
movzx eax, byte [esp + 0x2b]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x2a]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
mov dword [esi + 0xc], ecx
movzx eax, byte [esp + 0x31]
movzx ecx, byte [esp + 0x30]
movzx edx, byte [esp + 0x2f]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x2e]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [esi + 0x10], eax
movzx edx, byte [esp + 0x35]
movzx eax, byte [esp + 0x34]
movzx ecx, byte [esp + 0x33]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0x32]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov dword [esi + 0x14], edx
movzx ebp, byte [esp + 0x37]
movzx ecx, byte [esp + 0x36]
shl ebp, 8
or ebp, ecx
mov dword [esi + 0x18], ebp
movzx eax, byte [esp + 0x39]
movzx edx, byte [esp + 0x38]
shl eax, 8
or eax, edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dword [esi + 0x24], ecx
mov word [esi + 0x28], ax
mov word [esi + 0x2a], dx
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ecx
cmp dword [0x4d5b64], 1
jle 0x4a1de5
mov dword [esp + 0x10], ecx
jmp 0x4a1dec
mov edx, dword [esi + 0x10]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x18]
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x4c], ecx
mov dword [eax], esi
lea eax, [esi + 0x58]
mov dword [eax], ecx
mov dword [esp + 0x18], eax
cmp ebp, ecx
je 0x4a22a6
cmp ebp, 0x400
jae 0x4a22a6
lea ecx, [ebp + 1]
push ecx
call fcn.004a3acc
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
je 0x4a2281
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4a1e53
push eax
call fcn.004a3acc
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
je 0x4a2281
mov edx, dword [esi + 0x48]
push edi
push 1
push ebp
push edx
call fcn.004a5712
add esp, 0x10
cmp eax, 1
jne 0x4a1ffa
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4a1e8c
push edi
push 1
push eax
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a5712
add esp, 0x10
cmp eax, 1
jne 0x4a1ffa
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a1ea8
push 1
push eax
push edi
call fcn.004a59be
add esp, 0xc
test eax, eax
jne 0x4a1ffa
mov ecx, dword [esi + 0x48]
mov byte [ecx + ebp], 0
mov edx, dword [esi + 0x48]
push 1
push edx
call fcn.004523e0
mov eax, dword [esi + 0x48]
push eax
call fcn.004b2efa
add esp, 4
mov dword [esi + 0x4c], eax
test eax, eax
je 0x4a2281
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x38], eax
mov ecx, eax
lea edx, [esp + 0x4c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4a1ee0
mov edx, 0x800
test word [esi + 4], dx
jne 0x4a1f13
movzx eax, word [esi]
push eax
shr eax, 8
push eax
call fcn.004a0b60
test al, al
je 0x4a1f13
lea eax, [esp + 0x4c]
push eax
mov ecx, eax
push ecx
call sub.USER32.dll_OemToCharA
lea edx, [esp + 0x4c]
push edx
call fcn.0046a100
push eax
push 0x268
call fcn.00460760
push eax
lea eax, [esp + 0x454]
push eax
mov edx, 0x4c8
call fcn.00495900
add esp, 0xc
lea ecx, [esp + 0x44c]
push ecx
call fcn.00485240
call fcn.004468f0
cmp byte [0x4e8c4c], 0
jne 0x4a2296
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x34], ebx
mov eax, dword [esp + 0x10]
add edx, ebp
mov ecx, 1
add dword [0x4d56f8], ecx
add edx, eax
test byte [esp + 0x14], 8
lea ebx, [ebx + edx + 0x1e]
je 0x4a21bd
test eax, eax
jne 0x4a204b
lea ecx, [ecx]
push edi
call fcn.004a75d6
add esp, 4
cmp eax, 0xffffffff
je 0x4a1fa3
cmp eax, 0x50
jne 0x4a1f90
push edi
push 1
mov byte [esp + 0x28], al
lea eax, [esp + 0x29]
push 0xf
push eax
call fcn.004a5712
add esp, 0x10
cmp eax, 1
jne 0x4a2012
movzx ecx, byte [esp + 0x23]
movzx edx, byte [esp + 0x22]
movzx eax, byte [esp + 0x21]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x20]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
cmp ecx, 0x8074b50
je 0x4a2012
push 1
push 0xfffffffffffffff1
push edi
call fcn.004a59be
add esp, 0xc
test eax, eax
je 0x4a1f90
push edi
call fcn.004a6cf4
add esp, 4
neg eax
sbb eax, eax
and eax, 9
add eax, 2
jmp 0x4a22c9
movzx eax, byte [esp + 0x2b]
movzx ecx, byte [esp + 0x2a]
movzx edx, byte [esp + 0x29]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x28]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
push edi
mov dword [esp + 0x14], eax
add ebx, eax
call fcn.004a58c8
lea edx, [ebx + 0x10]
add esp, 4
cmp eax, edx
jmp 0x4a209b
push 0
push ebx
push edi
call fcn.004a59be
add esp, 0xc
test eax, eax
jne 0x4a1ffa
push edi
push 1
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004a5712
add esp, 0x10
cmp eax, 1
jne 0x4a1ffa
movzx ecx, byte [esp + 0x23]
movzx edx, byte [esp + 0x22]
movzx eax, byte [esp + 0x21]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x20]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
cmp ecx, 0x8074b50
jne 0x4a22a6
movzx eax, byte [esp + 0x27]
movzx ecx, byte [esp + 0x26]
movzx edx, byte [esp + 0x25]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x24]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [esi + 0xc], eax
mov edx, dword [esp + 0x10]
mov dword [esi + 0x10], edx
movzx eax, byte [esp + 0x2f]
movzx ecx, byte [esp + 0x2e]
movzx edx, byte [esp + 0x2d]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x2c]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [esi + 0x14], eax
add ebx, 0x10
push edi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call fcn.004a5712
add esp, 0x10
cmp eax, 1
jne 0x4a213c
movzx eax, byte [esp + 0x23]
movzx ecx, byte [esp + 0x22]
movzx edx, byte [esp + 0x21]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x20]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
cmp eax, 0x4034b50
je 0x4a1c77
push edi
mov dword [esp + 0x14], ebx
mov dword [0x4d56fc], ebx
mov dword [0x4d56f4], 0
call fcn.004a5ab5
mov eax, dword [0x4d56f8]
add esp, 4
test eax, eax
je 0x4a22ad
lea edx, [eax*4]
push edx
call fcn.004a3acc
add esp, 4
mov dword [0x4d56f0], eax
test eax, eax
je 0x4a2281
mov ecx, dword [0x4d5b70]
test ecx, ecx
je 0x4a21a1
lea ecx, [ecx]
mov dword [eax], ecx
mov ecx, dword [ecx + 0x58]
add eax, 4
test ecx, ecx
jne 0x4a2190
mov eax, dword [0x4d56f0]
mov ecx, dword [0x4d56f8]
push 0x4a0ba0
push 4
push ecx
push eax
call fcn.004a6a60
add esp, 0x10
jmp 0x4a22c7
cmp dword [0x4d5b64], ecx
jle 0x4a20f7
lea esp, [esp]
push edi
call fcn.004a75d6
add esp, 4
cmp eax, 0xffffffff
je 0x4a21f4
mov edi, edi
cmp eax, 0x50
je 0x4a21f4
push edi
inc ebx
call fcn.004a75d6
add esp, 4
cmp eax, 0xffffffff
jne 0x4a21e0
push edi
push 1
lea edx, [esp + 0x29]
push 3
push edx
mov byte [esp + 0x30], al
call fcn.004a5712
add esp, 0x10
cmp eax, 1
jne 0x4a225f
movzx eax, byte [esp + 0x23]
movzx ecx, byte [esp + 0x22]
movzx edx, byte [esp + 0x21]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x20]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [esp + 0x10], eax
cmp eax, 0x4034b50
je 0x4a225f
cmp eax, 0x2014b50
je 0x4a225f
push 1
push 0xfffffffffffffffd
push edi
call fcn.004a59be
add esp, 0xc
test eax, eax
jne 0x4a1ffa
inc ebx
jmp 0x4a21d0
mov eax, ebx
sub eax, dword [esi + 0x34]
sub eax, dword [esi + 0x1c]
sub eax, ebp
sub eax, 0x1e
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
je 0x4a210e
mov dword [esi + 0x10], eax
jmp 0x4a210e
mov eax, 4
jmp 0x4a22c9
push esi
call fcn.004a3b8f
add esp, 4
jmp 0x4a213c
push edi
call fcn.004a5ab5
add esp, 4
mov eax, 9
jmp 0x4a22c9
mov eax, 3
jmp 0x4a22c9
push 0x274
call fcn.00460760
mov edx, dword [0x4d5704]
push eax
push edx
call fcn.00492940
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0xddc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a39f3
add esp, 0xdd0
ret