Function at 0x440a20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [0x4ac218]
push ebp
push esi
mov esi, ecx
push edi
mov ecx, ebx
mov dword [esp + 0x14], ebx
call fcn.00414350
mov eax, dword [0x4a8978]
mov eax, dword [eax + 0xdc]
or ebp, 0xffffffff
and eax, 0x7fffffff
mov byte [esp + 0x13], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], eax
mov eax, esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x440a71
cmp cl, 9
jne 0x440a74
inc eax
jmp 0x440a65
cmp byte [eax], 0x2a
jne 0x440be2
movzx edi, byte [eax + 1]
lea esi, [eax + 1]
test edi, 0xffffff80
jne 0x440a9e
push 2
push edi
call fcn.004883de
add esp, 8
test eax, eax
je 0x440a9e
and edi, 0xffffffdf
mov eax, edi
movsx eax, al
add eax, 0xffffffbd
cmp eax, 0x11
ja case.0x440ab6.68
movzx ecx, byte [eax + 0x440fe8]
jmp dword [ecx*4 + 0x440fd4]
mov byte [esp + 0x1c], 1
jmp case.0x440ab6.68
lea edi, [esi + 1]
mov eax, edi
call fcn.0040e3e0
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
add edx, 0xa
push edx
push 0
push edi
call fcn.00488f29
mov dword [esp + 0x2c], eax
mov al, byte [esi]
add esp, 0xc
mov dword [esp + 0x24], edx
test al, al
je 0x440b1b
mov dl, al
lea ebx, [ebx]
mov ecx, 0x49c14c
mov al, 0x20
cmp dl, al
je 0x440b54
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x440b07
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x440b00
mov eax, dword [0x4a8978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x440fb2
mov ecx, dword [0x4acad0]
push 1
push 0
push ebp
push 0x49bec0
push ecx
call fcn.00476c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
dec esi
jmp case.0x440ab6.68
lea eax, [esi + 1]
push eax
call fcn.00488426
mov dl, byte [esi]
add esp, 4
mov dword [esp + 0x2c], eax
test dl, dl
je 0x440b8b
lea ecx, [ecx]
mov ecx, 0x49c14c
mov al, 0x20
cmp dl, al
je 0x440b54
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x440b77
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x440b70
mov eax, dword [0x4a8978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x440fb2
mov edx, dword [0x4acad0]
push 1
push 0
push ebp
push 0x49bec0
push edx
call fcn.00476c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov byte [esp + 0x13], 1
cmp byte [esi], 0
je 0x440a63
inc esi
cmp byte [esi], 0
je 0x440a63
inc esi
jmp 0x440a63
push 0
push 0x8000000
push 3
push 0
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x440c3d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4a8978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x440fb2
mov eax, dword [0x4acad0]
push 1
push 0
push ebp
push 0x49bec0
push eax
call fcn.00476c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, ebp
call fcn.00474ce0
mov esi, eax
mov ecx, esi
and ecx, edx
cmp ecx, 0xffffffff
jne 0x440c79
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [0x4a8978]
push ebp
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x34]
push eax
call fcn.00431650
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x24]
cmp edx, eax
jb 0x440c8f
ja 0x440c89
cmp esi, dword [esp + 0x20]
jbe 0x440c8f
mov esi, dword [esp + 0x20]
mov edx, eax
test edx, edx
jne 0x440c98
cmp esi, 0xfffffffd
jbe 0x440cb7
mov ecx, dword [esp + 0x34]
push 0x49a8ad
push 0
push 0x49c0a0
call fcn.0042efe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, esi
or ecx, edx
jne 0x440cf1
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4acad0]
mov edx, dword [0x4a8978]
push 1
push 0
push 0xffffffffffffffff
push 0x49a8c8
push eax
mov dword [edx + 0x30], 0
call fcn.00476c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp byte [esp + 0x1c], 0
je 0x440d49
mov al, byte [ebx + 0x17]
test al, al
jne 0x440d05
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x17]
cmp al, 2
je 0x440d49
mov eax, dword [esp + 0x14]
push 0
push 1
lea edx, [esi + 1]
push edx
push 0
push eax
mov bl, 1
call fcn.00476c10
cmp eax, 1
jne 0x440d36
mov ecx, dword [esp + 0x14]
push 0
push eax
call fcn.00401210
mov edi, eax
test edi, edi
jne 0x440d84
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
lea ecx, [esi + 2]
push ecx
xor bl, bl
call fcn.00487059
mov edi, eax
add esp, 4
test edi, edi
jne 0x440d84
mov ecx, dword [esp + 0x34]
push 0x49a8ad
push eax
push 0x49c0a0
call fcn.0042efe0
push ebp
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 edx, [esp + 0x1c]
push edx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov esi, eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4a8978]
push ebp
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x440f5d
cmp byte [esp + 0x1c], 0
jne 0x440eec
mov eax, dword [esp + 0x18]
cmp eax, 3
jb 0x440df4
cmp byte [edi], 0xef
jne 0x440df4
cmp byte [edi + 1], 0xbb
jne 0x440df4
cmp byte [edi + 2], 0xbf
jne 0x440df4
mov esi, dword [esp + 0x14]
push 0xfde9
lea ecx, [eax - 3]
lea edx, [edi + 3]
push esi
call fcn.00477740
jmp 0x440e2d
cmp eax, 2
jb 0x440e99
cmp byte [edi], 0xff
jne 0x440e99
cmp byte [edi + 1], 0xfe
jne 0x440e99
mov dl, 1
mov ecx, edi
test dl, dl
je 0x440e1e
lea ecx, [edi + 2]
add eax, 0xfffffffe
mov esi, dword [esp + 0x14]
shr eax, 1
push eax
push ecx
mov eax, esi
call fcn.00477810
test eax, eax
jne 0x440e35
mov dword [esp + 0x20], eax
test edi, edi
je 0x440e42
push edi
call fcn.00486eb8
add esp, 4
push 0
push 1
mov ecx, esi
call fcn.00401210
cmp byte [esp + 0x13], 0
mov esi, eax
je 0x440f7c
mov ebx, dword [esp + 0x14]
mov eax, ebx
call fcn.004147a0
push 0
push 0xffffffffffffffff
push 1
push 0x4a0218
mov dword [esp + 0x3c], eax
push 0x49fc40
push esi
lea eax, [esp + 0x44]
or ecx, 0xffffffff
call fcn.00474490
mov edi, dword [esp + 0x44]
add esp, 0x18
mov eax, ebx
call fcn.00414760
jmp 0x440f7c
mov esi, dword [esp + 0x2c]
xor dl, dl
cmp esi, 0x4b0
je 0x440e12
test esi, esi
je 0x440ed3
call dword [sym.imp.KERNEL32.DLL_GetACP]
cmp esi, eax
je 0x440ecf
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push esi
mov edx, edi
call fcn.00477740
jmp 0x440e2d
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov byte [eax + edi], 0
mov edx, dword [esp + 0x18]
push edx
mov eax, esi
call fcn.00477300
jmp 0x440e42
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x17]
test al, al
jne 0x440efd
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
jne 0x440f48
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00476a50
lea esi, [eax - 1]
add esp, 4
neg esi
push edi
sbb esi, esi
call fcn.00486eb8
add esp, 4
inc esi
je 0x440d3d
mov edx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49a8c8
push edx
call fcn.00476c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x18]
mov esi, eax
mov byte [eax + edi], 0
mov eax, ecx
call fcn.00414730
mov dword [eax], esi
jmp 0x440f7c
mov eax, dword [esp + 0x14]
mov byte [edi], 0
call fcn.00414730
mov dword [eax], 0
test bl, bl
jne 0x440f7c
push edi
call fcn.00486eb8
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
call fcn.00414830
test eax, eax
je 0x440d3d
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x34]
sete cl
movzx edx, cl
push edx
push eax
call fcn.0042ee10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x34]
push 0x49a8ad
push 0
push 0x49bec0
call fcn.0042ed70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4