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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b70b8
mov eax, dword fs:[0]
push eax
mov eax, 0x2008c
mov dword fs:[0], esp
call fcn.004b5d60
mov eax, dword [0x4ea78c]
mov dword [ebp - 0x50], vtable.TextStream.0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x68], esi
push edi
cmp eax, 0xffffffff
je 0x44bcfa
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x44bcfa
mov byte [ebp - 0x36], al
mov dword [ebp - 0x50], vtable.TextFile.0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
mov eax, dword [0x4e4788]
mov eax, dword [eax + 0x8c]
and eax, 0x7fffffff
push eax
push 0x30c
push dword [ebp + 0x14]
call fcn.0047ef20
mov bl, al
test bl, bl
jne 0x44bd87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x18]
cmp byte [ecx], 9
jne 0x44bd4e
cmp eax, 2
je 0x44bd87
cmp eax, 3
je 0x44bd87
push 0xa
lea ecx, [ebp - 0x8c]
push ecx
push eax
call fcn.004a4035
add esp, 0xc
lea eax, [ebp - 0x8c]
mov ecx, 0x4e9ec0
push dword [0x4e9d94]
push 0
push 9
push 0x4cee98
push eax
call fcn.0040c9c0
mov edi, eax
jmp 0x44c319
push dword [ebp + 0x18]
call fcn.004a9b8e
add esp, 4
test eax, eax
jne 0x44bdb5
push dword [0x4e9d8c]
mov ecx, 0x4e9ec0
push eax
push eax
push eax
push str.Out_of_memory.
call fcn.0040c9c0
mov edi, eax
jmp 0x44c319
mov dword [ebp - 0x20090], eax
xor eax, eax
mov dword [ebp - 0x20094], 0
mov word [ebp - 0x2008c], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20094]
mov dword [ebp - 0x58], eax
mov eax, dword [0x4e4788]
mov dword [ebp + 0x14], 4
mov dword [ebp - 0x74], eax
mov dword [eax + 0x10], ecx
test bl, bl
je 0x44c29f
mov edx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x24]
test edx, edx
je 0x44be38
test edi, edi
jne 0x44be38
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x10]
cmp eax, fcn.0047fb50
jne 0x44be27
push edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push eax
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x44be30
push edx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x50]
call eax
mov edi, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x48], edx
mov esi, dword [ebp - 0x20]
xor eax, eax
xor ecx, ecx
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x40]
xor ebx, ebx
cmp eax, 0x4b0
mov dword [ebp - 0x54], eax
sete cl
inc ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x14], ecx
nop word [eax + eax]
test edi, edi
jne 0x44bec6
mov edi, 0x2000
test esi, esi
jne 0x44be86
push edi
call fcn.0049f55d
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
test esi, esi
je 0x44bf06
mov edx, dword [ebp - 0x48]
lea ecx, [edx + 0x2000]
cmp ecx, edi
jbe 0x44be92
sub edi, edx
mov eax, dword [ebp - 0x50]
lea ecx, [esi + edx]
mov eax, dword [eax + 0xc]
cmp eax, method.TextFile.virtual_12
jne 0x44bf49
push 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
push edi
push ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x5c]
jmp 0x44bf50
mov eax, esi
sub eax, ecx
add eax, edx
cmp edi, eax
jbe 0x44bf79
mov eax, esi
sub eax, edi
add edx, eax
push edx
push edi
push esi
mov dword [ebp - 0x48], edx
call fcn.0049d080
mov esi, dword [ebp - 0x20]
add esp, 0xc
mov edi, 0x2000
test esi, esi
jne 0x44bf0b
push edi
call fcn.0049f55d
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x44bf0b
mov edx, dword [ebp - 0x48]
jmp 0x44bf62
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + 0x2000]
cmp eax, 0x2000
jbe 0x44bf1d
sub edi, ecx
mov eax, dword [ebp - 0x50]
add ecx, esi
mov eax, dword [eax + 0xc]
cmp eax, method.TextFile.virtual_12
jne 0x44bf49
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push eax
push edi
push ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x60]
jmp 0x44bf50
push edi
push ecx
lea ecx, [ebp - 0x50]
call eax
mov edx, dword [ebp - 0x48]
test eax, eax
je 0x44bf5c
add edx, eax
mov dword [ebp - 0x48], edx
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
cmp edx, dword [ebp - 0x14]
mov edi, esi
mov dword [ebp - 0x24], edi
setae al
test al, al
jne 0x44bf79
test edx, edx
je 0x44c166
cmp dword [ebp - 0x54], 0x4b0
lea ecx, [esi + edx]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x18], ecx
jne 0x44bfa2
mov eax, ecx
sub eax, edi
test al, 1
je 0x44bfa2
dec ecx
mov dword [ebp + 0x18], ecx
cmp ecx, edi
je 0x44c14a
cmp edi, ecx
jae 0x44c0ea
nop word [eax + eax]
cmp ebx, 0xffff
jae 0x44c142
mov edx, dword [ebp - 0x54]
cmp edx, 0x4b0
jne 0x44bfd8
mov ax, word [edi]
mov esi, 2
mov word [ebp - 0x18], ax
jmp 0x44c07b
mov al, byte [edi]
mov esi, 1
cmp al, 0x80
jae 0x44bfee
cbw
mov word [ebp - 0x18], ax
jmp 0x44c07b
cmp edx, 0xfde9
jne 0x44c037
mov cl, al
and cl, 0xe0
cmp cl, 0xc0
jne 0x44c007
mov esi, 2
jmp 0x44c04d
mov cl, al
and cl, 0xf0
cmp cl, 0xe0
jne 0x44c018
mov esi, 3
jmp 0x44c04d
and al, 0xf8
cmp al, 0xf0
jne 0x44c025
mov esi, 4
jmp 0x44c04d
mov eax, 0xfffd
mov word [ebp + ebx*2 - 0x2008c], ax
jmp 0x44c0d4
push eax
lea ecx, [ebp - 0x50]
call fcn.0047eee0
mov edx, dword [ebp - 0x54]
test al, al
mov eax, 2
cmovne esi, eax
mov ecx, dword [ebp + 0x18]
lea eax, [esi + edi]
cmp eax, ecx
ja 0x44c120
push 2
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push 8
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 1
jne 0x44c095
mov ax, word [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x54]
cmp ax, 0xa
je 0x44c1a2
cmp ax, 0xd
je 0x44c10a
mov word [ebp + ebx*2 - 0x2008c], ax
jmp 0x44c0d7
lea edx, [ebp - 0x2008c]
lea edx, [edx + ebx*2]
test eax, eax
je 0x44c0cc
lea ecx, [eax + ebx]
mov dword [ebp - 0x70], ecx
cmp ecx, 0xffff
ja 0x44c1ca
add eax, eax
push eax
lea eax, [ebp - 0x18]
push eax
push edx
call fcn.0049d080
mov ebx, dword [ebp - 0x70]
add esp, 0xc
mov ecx, dword [ebp + 0x18]
jmp 0x44c0d8
mov eax, 0xfffd
mov word [edx], ax
mov ecx, dword [ebp + 0x18]
inc ebx
add edi, esi
cmp edi, ecx
jb 0x44bfb0
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x20]
cmp edi, ecx
jne 0x44c0f3
xor edx, edx
xor edi, edi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x24], edi
cmp ebx, 0xffff
jae 0x44c1d2
mov ecx, dword [ebp - 0x14]
jmp 0x44be60
mov eax, dword [ebp - 0x64]
add eax, eax
mov dword [ebp - 0x14], eax
add eax, edi
cmp eax, ecx
jbe 0x44c17a
cmp dword [ebp - 0x44], 0
je 0x44c193
jmp 0x44c0e2
cmp dword [ebp - 0x44], 0
jne 0x44c13d
xor edx, edx
mov eax, 0xfffd
xor edi, edi
mov word [ebp + ebx*2 - 0x2008c], ax
mov dword [ebp - 0x48], edx
inc ebx
jmp 0x44c0e5
mov dword [ebp - 0x14], esi
jmp 0x44c0e2
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x48]
jmp 0x44c0f3
mov eax, 0xfffd
mov dword [ebp - 0x24], 0
mov word [ebp + ebx*2 - 0x2008c], ax
inc ebx
mov dword [ebp - 0x48], 0
cmp ebx, 0xffff
jae 0x44c1d2
xor eax, eax
mov word [ebp + ebx*2 - 0x2008c], ax
jmp 0x44c1d2
cmp edx, 0x4b0
jne 0x44c188
movzx eax, word [edi + 2]
jmp 0x44c18c
movsx eax, byte [edi + 1]
cmp eax, 0xa
jne 0x44c193
add esi, esi
test byte [ebp - 0x4c], 8
je 0x44c1a2
mov eax, 0xa
mov word [ebp - 0x18], ax
lea eax, [esi + edi]
mov dword [ebp - 0x24], eax
mov eax, 0xa
mov word [ebp + ebx*2 - 0x2008c], ax
inc ebx
cmp ebx, 0xffff
jae 0x44c1d2
xor eax, eax
mov word [ebp + ebx*2 - 0x2008c], ax
jmp 0x44c1d2
xor eax, eax
mov dword [ebp - 0x24], edi
mov word [edx], ax
test ebx, ebx
je 0x44c294
cmp word [ebp + ebx*2 - 0x2008e], 0xa
lea eax, [ebx - 1]
cmovne eax, ebx
mov ebx, dword [ebp - 0x68]
xor ecx, ecx
mov word [ebp + eax*2 - 0x2008c], cx
mov ecx, dword [ebx + 0x14]
cmp byte [ecx], 3
jne 0x44c225
nop
mov ecx, dword [ecx + 0x14]
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 8]
push 2
call fcn.00448a00
mov ecx, dword [ebx + 0x14]
mov esi, eax
mov eax, dword [ebp - 0x58]
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x18], esi
cmp eax, ecx
je 0x44c200
jmp 0x44c23e
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 8]
push 3
call fcn.00448a00
mov esi, eax
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp + 0x18], esi
mov ecx, esi
test eax, eax
je 0x44c24d
cmp ecx, 6
jne 0x44c28f
cmp eax, ebx
jne 0x44c28f
cmp ecx, 6
jne 0x44c25f
mov eax, 1
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
jmp 0x44c264
cmp esi, 1
jne 0x44c294
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x44c280
lea eax, [ebp + 0x18]
mov ecx, ebx
push eax
call fcn.0044a6d0
test al, al
jne 0x44c2bb
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp - 0x74]
add dword [ecx], 1
adc dword [ecx + 4], 0
jmp 0x44bdf5
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edi, dword [ebp + 0x14]
cmp edi, 4
jne 0x44c2c5
mov esi, dword [ebp - 0x68]
mov ecx, dword [esi + 0x18]
cmp byte [ecx], 9
jne 0x44c2c0
push dword [ebp + 0xc]
mov ecx, dword [ecx + 0x14]
push dword [ebp + 8]
push 3
call fcn.00448a00
mov edi, eax
jmp 0x44c2c5
mov edi, dword [ebp + 0x18]
jmp 0x44c297
mov edi, 1
mov esi, dword [ebp - 0x20094]
test esi, esi
je 0x44c30b
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44c2ee
cmp dword [esi + 0x2c], 0
jne 0x44c2ee
mov eax, dword [esi]
push ecx
push dword [esi + 0x30]
mov ecx, esi
call dword [eax + 0x10]
mov dword [esi + 8], 0
xor eax, eax
mov ecx, esi
mov word [esi + 0x28], ax
mov eax, dword [esi]
call dword [eax + 8]
mov ecx, dword [ebp - 0x20094]
test ecx, ecx
je 0x44c30b
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebp - 0x20090]
call fcn.0049f542
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], vtable.TextFile.0
test eax, eax
je 0x44c34e
cmp dword [ebp - 0x24], 0
jne 0x44c34e
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov word [ebp - 0x28], ax
cmp ecx, 0xffffffff
je 0x44c379
mov eax, dword [ebp - 0x4c]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x44c372
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x50], vtable.TextStream.0
test ecx, ecx
je 0x44c390
push ecx
call fcn.0049f542
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14