Function at 0x442f50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [0x4cb498]
push esi
mov esi, ecx
push edi
mov ecx, ebp
mov dword [esp + 0x18], ebp
call fcn.004154f0
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x4c7a54]
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 0x442fa2
cmp ecx, 9
jne 0x442fa7
add eax, 2
jmp 0x442f95
cmp word [eax], 0x2a
jne 0x44308b
movzx edi, word [eax + 2]
lea esi, [eax + 2]
test edi, 0xffffff80
jne 0x442fd2
push 2
push edi
call fcn.00491f4e
add esp, 8
test eax, eax
je 0x442fd2
and edi, 0xffffffdf
movzx eax, di
add eax, 0xffffffbd
cmp eax, 0x11
ja case.0x442fe8.68
movzx ecx, byte [eax + 0x4434b4]
jmp dword [ecx*4 + 0x4434a0]
mov byte [esp + 0x1c], 1
jmp case.0x442fe8.68
lea edi, [esi + 2]
mov eax, edi
call fcn.0040f270
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
add edx, 0xa
push edx
push 0
push edi
call fcn.004929ee
mov dword [esp + 0x34], eax
add esp, 0xc
mov ebx, 0x4a780c
mov eax, esi
mov dword [esp + 0x2c], edx
call fcn.00409e50
mov esi, eax
test esi, esi
je 0x443431
sub esi, 2
jmp case.0x442fe8.68
lea eax, [esi + 2]
push eax
call fcn.00491f96
mov dword [esp + 0x28], eax
add esp, 4
mov ebx, 0x4a780c
mov eax, esi
call fcn.00409e50
mov esi, eax
test esi, esi
je 0x443449
sub esi, 2
jmp case.0x442fe8.68
mov byte [esp + 0x16], 1
cmp word [esi], 0
je 0x442f93
add esi, 2
cmp word [esi], 0
je 0x442f93
add esi, 2
jmp 0x442f93
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 0x4430e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c7a54]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x44347f
mov eax, dword [0x4cbd60]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7314
push eax
call fcn.0047a6b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, ebx
call fcn.00478480
mov edi, eax
mov ecx, edi
and ecx, edx
cmp ecx, 0xffffffff
jne 0x443123
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4c7a54]
push ebx
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
push eax
call fcn.00433030
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x2c]
cmp edx, eax
jb 0x443139
ja 0x443133
cmp edi, dword [esp + 0x28]
jbe 0x443139
mov edi, dword [esp + 0x28]
mov edx, eax
test edx, edx
jne 0x443142
cmp edi, 0xfffffffd
jbe 0x443161
mov ecx, dword [esp + 0x34]
push 0x4a4910
push 0
push 0x4a76c0
call fcn.004309e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, edi
or ecx, edx
jne 0x44319b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4cbd60]
mov edx, dword [0x4c7a54]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4920
push eax
mov dword [edx + 0x30], 0
call fcn.0047a6b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp byte [esp + 0x1c], 0
je 0x4431ea
mov al, byte [ebp + 0x17]
test al, al
jne 0x4431af
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0x17]
cmp al, 2
je 0x4431ea
push ebp
mov cl, 1
mov eax, edi
mov byte [esp + 0x1b], 1
call fcn.004323d0
cmp eax, 1
jne 0x4431d7
push 0
push eax
mov ecx, ebp
call fcn.00401280
mov esi, eax
test esi, esi
jne 0x443228
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
lea edx, [edi + 2]
push edx
mov byte [esp + 0x1b], 0
call fcn.00490fe4
mov esi, eax
add esp, 4
test esi, esi
jne 0x443228
mov ecx, dword [esp + 0x34]
push 0x4a4910
push eax
push 0x4a76c0
call fcn.004309e0
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
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 [0x4c7a54]
push ebx
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x4433da
cmp byte [esp + 0x1c], 0
jne 0x44335e
mov eax, dword [esp + 0x20]
cmp eax, 3
jb 0x443296
cmp byte [esi], 0xef
jne 0x443296
cmp byte [esi + 1], 0xbb
jne 0x443296
cmp byte [esi + 2], 0xbf
jne 0x443296
mov edi, dword [esp + 0x18]
add eax, 0xfffffffd
push eax
lea edx, [esi + 3]
push edx
push edi
mov ebx, 0xfde9
call fcn.0047b200
jmp 0x4432d2
cmp eax, 2
jb 0x44333b
cmp byte [esi], 0xff
jne 0x44333b
cmp byte [esi + 1], 0xfe
jne 0x44333b
mov dl, 1
mov ecx, esi
test dl, dl
je 0x4432c0
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.0047a6b0
test eax, eax
jne 0x4432d8
xor ebp, ebp
test esi, esi
je 0x4432e5
push esi
call fcn.004915f6
add esp, 4
push 0
push 1
mov ecx, edi
call fcn.00401280
cmp byte [esp + 0x16], 0
mov esi, eax
je 0x4433fe
mov ebx, dword [esp + 0x18]
mov eax, ebx
call fcn.00415970
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4aee7c
mov dword [esp + 0x38], eax
push 0x4ae370
push esi
lea eax, [esp + 0x40]
call fcn.00477b20
mov edi, dword [esp + 0x40]
add esp, 0x1c
mov eax, ebx
call fcn.00415930
jmp 0x4433fe
mov ebx, dword [esp + 0x24]
xor dl, dl
cmp ebx, 0x4b0
je 0x4432b4
mov edi, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.0047b200
jmp 0x4432d2
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 0x17]
test al, al
jne 0x44336f
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
jne 0x4433ba
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0047a4f0
lea edi, [eax - 1]
add esp, 4
neg edi
push esi
sbb edi, edi
call fcn.004915f6
add esp, 4
inc edi
je 0x4431de
mov edx, dword [0x4cbd60]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4920
push edx
call fcn.0047a6b0
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 0x4433c9
mov byte [eax + esi], 0
inc edi
xor eax, eax
mov word [edi + esi], ax
mov eax, ecx
call fcn.00415900
mov dword [eax], edi
jmp 0x4433fe
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [esi], cx
call fcn.00415900
cmp byte [esp + 0x17], 0
mov dword [eax], 0
jne 0x4433fe
push esi
call fcn.004915f6
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
call fcn.00415a20
test eax, eax
je 0x4431de
mov edx, dword [esp + 0x34]
test ebp, ebp
sete al
movzx ecx, al
push ecx
push edx
call fcn.00430680
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [0x4c7a54]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jmp 0x4430c1
mov eax, dword [0x4c7a54]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x44347f
mov ecx, dword [0x4cbd60]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7314
push ecx
call fcn.0047a6b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x34]
push 0x4a4910
push 0
push 0x4a7314
call fcn.004305e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4