Function at 0x44a432
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x40], ecx
push ecx
lea ecx, [ebp - 0x60]
call fcn.0042c9fa
mov esi, dword [ebp + 8]
xor edi, edi
mov di, word [esi]
mov eax, edi
call fcn.00426083
xor ebx, ebx
test al, al
jne 0x44a5f4
push 4
push esi
push str._UNI
call fcn.00426f2f
add esp, 0xc
test al, al
jne 0x44a4a4
push 5
push esi
push str._UNIB
call fcn.00426f2f
add esp, 0xc
test al, al
jne 0x44a554
push 8
push esi
push str._UNICODE
call fcn.00426f2f
add esp, 0xc
test al, al
je 0x44a540
mov dword [ebp - 0xc], 0x4b0
lea eax, [ebp + 8]
push eax
call fcn.00403b20
push 4
lea eax, [ebp + 8]
push eax
push str.fix
call fcn.0042c7e8
neg al
sbb al, al
push 4
and eax, 2
mov byte [ebp - 0x30], al
lea eax, [ebp + 8]
push eax
push 0x481528
call fcn.0042c7e8
add esp, 0x1c
mov esi, 0x47a8e8
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 3], al
call fcn.00434695
push 0x481520
lea ecx, [ebp - 0x38]
call fcn.00434695
push 1
push 0x2c
pop edi
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x18], ebx
call fcn.0043e2e9
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.0042d669
push dword [ebp - 0x3c]
call fcn.0040ca55
add esp, 0x10
cmp word [eax], bx
mov dword [ebp - 0x20], eax
jne 0x44a634
mov ebx, 0x80070057
jmp 0x44a993
push 9
push esi
push str._UNICODEB
call fcn.00426f2f
add esp, 0xc
test al, al
je 0x44a560
mov dword [ebp - 0xc], 0x4b1
jmp 0x44a4ab
push 5
push esi
push str._UTF8
call fcn.00426f2f
add esp, 0xc
test al, al
je 0x44a580
mov dword [ebp - 0xc], 0xfde9
jmp 0x44a4ab
push 5
push esi
push str._UTF7
call fcn.00426f2f
add esp, 0xc
test al, al
je 0x44a5a0
mov dword [ebp - 0xc], 0xfde8
jmp 0x44a4ab
push 4
push esi
push str._GBK
call fcn.00426f2f
add esp, 0xc
test al, al
je 0x44a5c0
mov dword [ebp - 0xc], 0x3a8
jmp 0x44a4ab
push 5
push esi
push str._BIG5
call fcn.00426f2f
add esp, 0xc
test al, al
je 0x44a5e0
mov dword [ebp - 0xc], 0x3b6
jmp 0x44a4ab
push 5
push esi
push str._ANSI
call fcn.00426f2f
add esp, 0xc
test al, al
je 0x44a5fc
mov dword [ebp - 0xc], ebx
jmp 0x44a4ab
cmp di, 0x2d
jne 0x44a62c
xor eax, eax
lea ecx, [esi + 2]
mov ax, word [ecx]
push eax
call fcn.0042aa31
add esp, 4
test al, al
je 0x44a62c
push ecx
mov dword [ebp + 8], ecx
call fcn.0042b5a7
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jge 0x44a4ab
xor ebx, ebx
inc ebx
jmp 0x44a9a3
mov eax, dword [ebp + 8]
cmp word [eax], di
jne 0x44a67b
inc eax
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0042609c
mov eax, dword [ebp + 8]
cmp word [eax], di
pop ecx
je 0x44a678
push 1
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x60]
call fcn.0043e2e9
push ebx
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.0042d669
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], di
jne 0x44a67b
lea esi, [eax + 2]
mov eax, dword [ebp - 0x38]
cmp word [eax], 0x24
mov dword [ebp + 8], eax
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
jne 0x44a698
mov cl, byte [eax]
add eax, 2
mov byte [ebp - 2], cl
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0042609c
mov eax, dword [ebp + 8]
pop ecx
mov cx, word [eax]
cmp cx, 0x2b
je 0x44a6b4
cmp cx, 0x2d
jne 0x44a6be
mov cl, byte [eax]
inc eax
inc eax
mov byte [ebp - 1], cl
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0042609c
mov eax, dword [ebp + 8]
movzx eax, word [eax]
push eax
call fcn.0042aa31
add esp, 8
test al, al
je 0x44a6f4
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042d84d
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jl 0x44a993
lea ecx, [ebp - 0x10]
call fcn.0042aeb8
cmp byte [ebp - 2], bl
je 0x44a713
mov ecx, dword [ebp - 0x40]
push 1
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0043b18c
jmp 0x44a71c
push esi
lea ecx, [ebp - 0x10]
call fcn.004346c9
push dword [ebp - 0x20]
xor esi, esi
push 0x47aecc
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], ebx
mov byte [ebp + 0xb], bl
call fcn.00426fa9
test al, al
pop ecx
pop ecx
je 0x44a745
mov eax, dword [0x48e2bc]
mov byte [ebp + 0xb], 2
jmp 0x44a761
push dword [ebp - 0x20]
push 0x47b404
call fcn.00426fa9
test al, al
pop ecx
pop ecx
je 0x44a764
mov eax, dword [0x48e2b8]
mov byte [ebp + 0xb], 1
mov dword [ebp - 0x28], eax
cmp byte [ebp - 3], bl
jne 0x44a776
push 0x47ac0c
lea ecx, [ebp - 0x10]
call fcn.0042af26
cmp byte [ebp + 0xb], bl
mov dword [ebp - 0x14], ebx
jne 0x44a8e0
push dword [ebp - 0x20]
push str.CONOUT_
call fcn.00426fa9
test al, al
pop ecx
pop ecx
je 0x44a79c
push ebx
call fcn.00428f29
pop ecx
push ebx
push 0x80
push 3
push ebx
push 7
mov edi, 0xc0000000
push edi
push dword [ebp - 0x20]
lea ecx, [ebp - 8]
call fcn.00403b3c
mov esi, dword [ebp - 8]
cmp esi, ebx
jne 0x44a7e6
push ebx
push ebx
push dword [ebp - 0x20]
call fcn.00431404
add esp, 0xc
push ebx
push 0x80
push 4
push ebx
push 7
push edi
push dword [ebp - 0x20]
lea ecx, [ebp - 8]
call fcn.00403b3c
mov esi, dword [ebp - 8]
cmp esi, ebx
mov dword [ebp - 0x28], esi
jne 0x44a7fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x44a983
xor eax, eax
push ebx
mov byte [ebp - 0x50], bl
mov byte [ebp - 0x4f], bl
mov byte [ebp - 0x4e], bl
lea edi, [ebp - 0x4d]
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push eax
push 3
lea eax, [ebp - 0x50]
push eax
push esi
mov dword [ebp - 0x40], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [ebp - 0x50], 0xff
push 2
pop edi
jne 0x44a838
cmp byte [ebp - 0x4f], 0xfe
jne 0x44a86e
mov dword [ebp - 0xc], 0x4b0
mov dword [ebp - 0x14], edi
cmp byte [ebp - 0x50], 0xfe
jne 0x44a84e
cmp byte [ebp - 0x4f], 0xff
jne 0x44a86e
mov dword [ebp - 0xc], 0x4b1
mov dword [ebp - 0x14], edi
cmp byte [ebp - 0x50], 0xef
jne 0x44a86e
cmp byte [ebp - 0x4f], 0xbb
jne 0x44a86e
cmp byte [ebp - 0x4e], 0xbf
jne 0x44a86e
mov dword [ebp - 0xc], 0xfde9
mov dword [ebp - 0x14], 3
cmp dword [ebp - 0x40], ebx
push ebx
jne 0x44a8d1
push ebx
push ebx
push esi
call fcn.00426f04
add esp, 0x10
cmp dword [ebp - 0xc], 0x4b0
jne 0x44a895
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push 0x47e5d8
jmp 0x44a8a9
cmp dword [ebp - 0xc], 0x4b1
jne 0x44a8b5
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push 0x47e5dc
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x44a8e0
cmp dword [ebp - 0xc], 0xfde9
jne 0x44a8e0
push 3
pop eax
push ebx
lea ecx, [ebp - 0x54]
push ecx
push eax
mov dword [ebp - 0x14], eax
push 0x47e5e0
jmp 0x44a8ac
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
push esi
call fcn.00426f04
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 0xc]
shl eax, 1
cmp edi, 0x4b0
mov dword [ebp - 0x20], eax
je 0x44a94f
cmp edi, 0x4b1
jne 0x44a90e
push eax
push dword [ebp - 0x10]
call fcn.00428ec8
pop ecx
pop ecx
jmp 0x44a94f
cmp edi, 0xfde9
jne 0x44a923
lea ecx, [ebp - 0x10]
call fcn.00409f69
mov dword [ebp - 0x20], eax
jmp 0x44a94f
mov eax, dword [ebp - 0x10]
movzx ecx, di
push ecx
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
call fcn.00409e88
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], eax
call fcn.0042602e
cmp byte [ebp + 0xb], bl
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
je 0x44a9b2
cmp dword [ebp - 0x28], 0xffffffff
jne 0x44a965
xor ebx, ebx
inc ebx
jmp 0x44a983
push ebx
lea ecx, [ebp + 8]
push ecx
push dword [ebp - 0x20]
mov dword [ebp + 8], ebx
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp - 8]
call fcn.004029f8
lea ecx, [ebp - 0x10]
call fcn.0042602e
lea ecx, [ebp - 0x38]
call fcn.0042602e
lea ecx, [ebp - 0x3c]
call fcn.0042602e
lea ecx, [ebp - 0x60]
call fcn.0042602e
mov eax, ebx
jmp 0x44ad1b
lea ecx, [ebp - 0x54]
call fcn.0042aeb8
lea ecx, [ebp - 0x50]
call fcn.0042aeb8
lea ecx, [ebp - 0x48]
call fcn.0042adba
lea ecx, [ebp + 8]
call fcn.0042adba
cmp dword [ebp - 0x18], ebx
jne 0x44aa82
cmp byte [ebp - 1], 0x2b
je 0x44aa73
mov eax, dword [ebp - 0x14]
cdq
push ebx
push edx
push eax
push esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
call fcn.00426f04
push 1
push ebx
push ebx
push esi
call fcn.00426f04
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x28], edx
call fcn.0043113d
add esp, 0x30
jmp 0x44aa4e
mov eax, dword [ebp - 0x2c]
push 1
push ebx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
push ebx
push esi
mov dword [ebp - 0x40], eax
call fcn.00426f04
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x28], edx
call fcn.0043113d
add esp, 0x20
test eax, eax
jne 0x44aa1e
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push esi
call fcn.00426f04
push dword [ebp - 0x40]
lea eax, [ebp - 8]
push dword [ebp - 0x44]
push eax
call fcn.0043144f
add esp, 0x1c
jmp 0x44aab0
push 2
push ebx
push ebx
push esi
call fcn.00426f04
add esp, 0x10
jmp 0x44aab0
xor eax, eax
inc eax
cmp dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
jle 0x44aab0
push dword [ebp - 0x30]
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0043113d
add esp, 0x10
test eax, eax
je 0x44aab0
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
jl 0x44aa8d
cmp byte [ebp - 1], 0x2b
jne 0x44ab5f
cmp dword [ebp - 0x18], ebx
jne 0x44aad2
push dword [ebp - 0x20]
lea ecx, [ebp - 8]
push dword [ebp - 0xc]
call fcn.00425f8b
jmp 0x44acd1
push 1
push ebx
push ebx
push esi
call fcn.00426f04
push esi
mov edi, eax
call fcn.0042a969
add esp, 0x14
sub eax, edi
mov dword [ebp - 0x30], eax
jns 0x44aaf1
mov dword [ebp - 0x30], ebx
add eax, 0xca
push eax
lea ecx, [ebp - 0x28]
call fcn.0042add7
mov eax, edi
cdq
push ebx
push edx
mov edi, eax
push edi
push esi
mov dword [ebp - 0x18], edx
call fcn.00426f04
add esp, 0x10
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x40], ebx
push dword [ebp - 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 0x18]
push edi
push esi
call fcn.00426f04
add esp, 0x10
push dword [ebp - 0x20]
lea ecx, [ebp - 8]
push dword [ebp - 0xc]
call fcn.00425f8b
cmp dword [ebp - 0x30], ebx
jle 0x44ab57
push dword [ebp - 0x30]
lea ecx, [ebp - 8]
push dword [ebp - 0x28]
call fcn.00425f8b
lea ecx, [ebp - 0x28]
jmp 0x44accc
cmp byte [ebp - 1], 0x2d
jne 0x44ac0e
cmp dword [ebp - 0x18], ebx
je 0x44acd1
push 1
push ebx
push ebx
push esi
call fcn.00426f04
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x28], edx
call fcn.0043113d
push 1
push ebx
push ebx
push esi
call fcn.00426f04
push esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
call fcn.0042a969
mov edi, eax
sub edi, dword [ebp - 0x34]
add esp, 0x34
lea eax, [edi + 0xca]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], edx
call fcn.0042add7
push ebx
lea eax, [ebp - 0x40]
push eax
add edi, 0xc8
push edi
push dword [ebp - 0x30]
mov dword [ebp - 0x40], ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push esi
call fcn.00426f04
push dword [ebp - 0x28]
lea eax, [ebp - 8]
push dword [ebp - 0x2c]
push eax
call fcn.0043144f
add esp, 0x1c
push dword [ebp - 0x40]
lea ecx, [ebp - 8]
push dword [ebp - 0x30]
call fcn.00425f8b
jmp 0x44acc9
cmp dword [ebp - 0x18], ebx
je 0x44aabf
push 1
push ebx
push ebx
push esi
call fcn.00426f04
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x28], edx
call fcn.0043113d
push 1
push ebx
push ebx
push esi
call fcn.00426f04
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call fcn.0042a969
mov edi, eax
sub edi, dword [ebp - 0x1c]
add esp, 0x34
lea eax, [edi + 0xca]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edx
call fcn.0042add7
push ebx
lea eax, [ebp - 0x40]
push eax
add edi, 0xc8
push edi
push dword [ebp - 0x30]
mov dword [ebp - 0x40], ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push esi
call fcn.00426f04
add esp, 0x10
push dword [ebp - 0x20]
lea ecx, [ebp - 8]
push dword [ebp - 0xc]
call fcn.00425f8b
push dword [ebp - 0x40]
lea ecx, [ebp - 8]
push dword [ebp - 0x30]
call fcn.00425f8b
push 1
push ebx
push ebx
push esi
call fcn.00426f04
mov dword [ebp - 0x18], edx
cdq
push edx
push eax
lea eax, [ebp - 8]
push eax
call fcn.0043144f
add esp, 0x1c
lea ecx, [ebp - 0x30]
call fcn.0042602e
lea ecx, [ebp + 8]
call fcn.0042602e
lea ecx, [ebp - 0x48]
call fcn.0042602e
lea ecx, [ebp - 0x50]
call fcn.0042602e
lea ecx, [ebp - 0x54]
call fcn.0042602e
lea ecx, [ebp - 8]
call fcn.004029f8
lea ecx, [ebp - 0x10]
call fcn.0042602e
lea ecx, [ebp - 0x38]
call fcn.0042602e
lea ecx, [ebp - 0x3c]
call fcn.0042602e
lea ecx, [ebp - 0x60]
call fcn.0042602e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8