Function at 0x4419b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [0x4c9450]
push esi
mov esi, ecx
push edi
mov ecx, ebp
mov dword [esp + 0x18], ebp
call fcn.004139f0
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x4c590c]
mov eax, dword [eax + 0xfc]
and eax, 0x7fffffff
mov byte [esp + 0x16], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x24], eax
mov eax, esi
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x441a02
cmp ecx, 9
jne 0x441a07
add eax, 2
jmp 0x4419f5
cmp word [eax], 0x2a
jne 0x441aeb
movzx edi, word [eax + 2]
lea esi, [eax + 2]
test edi, 0xffffff80
jne 0x441a32
push 2
push edi
call fcn.0048f7ae
add esp, 8
test eax, eax
je 0x441a32
and edi, 0xffffffdf
movzx eax, di
add eax, 0xffffffbd
cmp eax, 0x11
ja case.0x441a48.68
movzx ecx, byte [eax + 0x441f70]
jmp dword [ecx*4 + 0x441f5c]
mov byte [esp + 0x1c], 1
jmp case.0x441a48.68
lea edi, [esi + 2]
mov eax, edi
call fcn.0040da30
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
add edx, 0xa
push edx
push 0
push edi
call fcn.004901b9
mov dword [esp + 0x34], eax
add esp, 0xc
mov ebx, 0x4a5734
mov eax, esi
mov dword [esp + 0x2c], edx
call fcn.004095d0
mov esi, eax
test esi, esi
je 0x441eed
sub esi, 2
jmp case.0x441a48.68
lea eax, [esi + 2]
push eax
call fcn.0048f7f6
mov dword [esp + 0x28], eax
add esp, 4
mov ebx, 0x4a5734
mov eax, esi
call fcn.004095d0
mov esi, eax
test esi, esi
je 0x441f05
sub esi, 2
jmp case.0x441a48.68
mov byte [esp + 0x16], 1
cmp word [esi], 0
je 0x4419f3
add esi, 2
cmp word [esi], 0
je 0x4419f3
add esi, 2
jmp 0x4419f3
push 0
push 0x8000000
push 3
push 0
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x441b47
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4c590c]
cmp byte [ecx + 0x108], 0
mov dword [ecx + 0x30], eax
jne 0x441f3b
mov eax, dword [0x4c9d08]
push 1
push 0
push 0xffffffffffffffff
push 0x4a54c0
push eax
call fcn.00477e60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, ebx
call fcn.00476060
mov edi, eax
mov ecx, edi
and ecx, edx
cmp ecx, 0xffffffff
jne 0x441b83
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [0x4c590c]
push ebx
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x34]
push eax
call fcn.00431130
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x2c]
cmp edx, eax
jb 0x441b99
ja 0x441b93
cmp edi, dword [esp + 0x28]
jbe 0x441b99
mov edi, dword [esp + 0x28]
mov edx, eax
test edx, edx
jne 0x441ba2
cmp edi, 0xfffffffd
jbe 0x441bc1
mov ecx, dword [esp + 0x34]
push 0x4a2868
push 0
push 0x4a55e8
call fcn.0042ea20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, edi
or ecx, edx
jne 0x441bfb
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4c9d08]
mov edx, dword [0x4c590c]
push 1
push 0
push 0xffffffffffffffff
push 0x4a296c
push eax
mov dword [edx + 0x30], 0
call fcn.00477e60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp byte [esp + 0x1c], 0
je 0x441c32
mov al, byte [ebp + 0x17]
test al, al
jne 0x441c0f
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0x17]
cmp al, 2
je 0x441c32
push ebp
mov cl, 1
mov eax, edi
mov byte [esp + 0x1b], 1
call fcn.004303f0
cmp eax, 1
jne 0x441c9a
cmp byte [ebp + 0x17], 0
jne 0x441c70
mov esi, dword [ebp + 0xc]
jmp 0x441c72
lea edx, [edi + 2]
push edx
mov byte [esp + 0x1b], 0
call fcn.0048e5e4
mov esi, eax
add esp, 4
test esi, esi
jne 0x441cbf
mov ecx, dword [esp + 0x34]
push 0x4a2868
push eax
push 0x4a55e8
call fcn.0042ea20
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov esi, ebp
test byte [esi + 0x15], 8
je 0x441c7f
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x441cad
test byte [esi + 0x15], 4
je 0x441c93
mov eax, esi
call fcn.0042f290
mov esi, dword [esi + 8]
test esi, esi
jne 0x441cbf
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp al, 2
jne 0x441cba
call fcn.00401000
mov esi, eax
jmp 0x441c96
mov esi, 0x4cb614
push 0
lea eax, [esp + 0x24]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4c590c]
push ebx
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebp, ebp
je 0x441e96
cmp byte [esp + 0x1c], 0
jne 0x441e1a
mov eax, dword [esp + 0x20]
cmp eax, 3
jb 0x441d2d
cmp byte [esi], 0xef
jne 0x441d2d
cmp byte [esi + 1], 0xbb
jne 0x441d2d
cmp byte [esi + 2], 0xbf
jne 0x441d2d
mov edi, dword [esp + 0x18]
add eax, 0xfffffffd
push eax
lea edx, [esi + 3]
push edx
push edi
mov ebx, 0xfde9
call fcn.004789a0
jmp 0x441d5d
cmp eax, 2
jb 0x441d7b
cmp byte [esi], 0xff
jne 0x441d7b
cmp byte [esi + 1], 0xfe
jne 0x441d7b
mov dl, 1
mov ecx, esi
test dl, dl
je 0x441d4b
lea ecx, [esi + 2]
add eax, 0xfffffffe
mov edi, dword [esp + 0x18]
push 0
push 1
shr eax, 1
push eax
push ecx
push edi
call fcn.00477e60
test eax, eax
jne 0x441d63
xor ebp, ebp
test esi, esi
je 0x441d70
push esi
call fcn.0048f817
add esp, 4
cmp byte [edi + 0x17], 0
jne 0x441d97
mov esi, dword [edi + 0xc]
jmp 0x441d99
mov ebx, dword [esp + 0x24]
xor dl, dl
cmp ebx, 0x4b0
je 0x441d3f
mov edi, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.004789a0
jmp 0x441d5d
mov esi, edi
test byte [esi + 0x15], 8
je 0x441da6
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x441dbf
test byte [esi + 0x15], 4
je 0x441dba
mov eax, esi
call fcn.0042f290
mov esi, dword [esi + 8]
jmp 0x441dd1
cmp al, 2
jne 0x441dcc
call fcn.00401000
mov esi, eax
jmp 0x441dd1
mov esi, 0x4cb614
cmp byte [esp + 0x16], 0
je 0x441eba
mov ebx, dword [esp + 0x18]
mov eax, ebx
call fcn.00413ed0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4aca54
mov dword [esp + 0x38], eax
push 0x4abeec
push esi
lea eax, [esp + 0x40]
call fcn.004757b0
mov edi, dword [esp + 0x40]
add esp, 0x1c
mov eax, ebx
call fcn.00413e90
jmp 0x441eba
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 0x17]
test al, al
jne 0x441e2b
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
jne 0x441e76
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00477ca0
lea edi, [eax - 1]
add esp, 4
neg edi
push esi
sbb edi, edi
call fcn.0048f817
add esp, 4
inc edi
je 0x441ca1
mov edx, dword [0x4c9d08]
push 1
push 0
push 0xffffffffffffffff
push 0x4a296c
push edx
call fcn.00477e60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x20]
mov edi, eax
test al, 1
je 0x441e85
mov byte [eax + esi], 0
inc edi
xor eax, eax
mov word [edi + esi], ax
mov eax, ecx
call fcn.00413e60
mov dword [eax], edi
jmp 0x441eba
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [esi], cx
call fcn.00413e60
cmp byte [esp + 0x17], 0
mov dword [eax], 0
jne 0x441eba
push esi
call fcn.0048f817
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
call fcn.00413fb0
test eax, eax
je 0x441ca1
mov edx, dword [esp + 0x34]
test ebp, ebp
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042e850
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [0x4c590c]
cmp byte [eax + 0x108], 0
mov dword [eax + 0x30], 0x57
jmp 0x441b21
mov eax, dword [0x4c590c]
cmp byte [eax + 0x108], 0
mov dword [eax + 0x30], 0x57
jne 0x441f3b
mov ecx, dword [0x4c9d08]
push 1
push 0
push 0xffffffffffffffff
push 0x4a54c0
push ecx
call fcn.00477e60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x34]
push 0x4a2868
push 0
push 0x4a54c0
call fcn.0042e760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4