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

Disassembly:
push 0xffffffffffffffff
push 0x46d50b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x489ec0]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489ec0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x20]
push 0
mov dword [esp + 0x28], ecx
call fcn.0040e3b0
mov eax, dword [esi + 4]
mov ecx, 0x46ff44
test al, 0x40
je 0x41e6c0
mov ecx, 0x474d40
jmp 0x41e6c9
test al, 0x20
je 0x41e6c9
mov ecx, 0x46fe98
mov eax, dword [esp + 0xb8]
push ecx
push eax
mov dword [esi], 0
call fcn.0044f7a7
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x41e6f2
mov ecx, esi
call fcn.0041b290
jmp 0x41ea15
mov ecx, dword [esi + 4]
mov ebx, 1
xor edi, edi
mov dword [esi + 0x18], ebx
test cl, 0x10
je 0x41e92b
push 2
push edi
push eax
call fcn.0044fd63
mov ecx, dword [esi]
push ecx
call fcn.0044fc6b
mov edx, dword [esi]
push edi
push edi
push edx
mov dword [esi + 0x10], eax
call fcn.0044fd63
mov eax, dword [esi + 0x10]
mov ebp, 0x400
add esp, 0x1c
cmp eax, ebp
jge 0x41e73f
mov ebp, eax
test ebp, ebp
je 0x41e9d1
push ebp
call fcn.0044cdb6
mov ecx, dword [esi]
push ecx
push ebx
push ebp
push eax
mov dword [esp + 0x30], eax
call fcn.0044fab1
add esp, 0x14
cmp eax, ebx
sete al
mov byte [esp + 0x17], al
test al, al
je 0x41e919
and dword [esi + 4], 0xfffffffa
xor ecx, ecx
cmp dword [0x488f48], ecx
je 0x41e7e7
xor eax, eax
jmp 0x41e780
mov edx, dword [eax + 0x488f4c]
test edx, edx
jle 0x41e7ab
cmp edi, ebp
jge 0x41e7ab
mov ebx, dword [esp + 0x1c]
mov edx, dword [eax + 0x488f48]
mov bl, byte [ebx + edi]
cmp bl, byte [edi + edx]
mov edx, dword [eax + 0x488f4c]
jne 0x41e7ab
inc edi
cmp edi, edx
jl 0x41e78a
cmp edi, edx
je 0x41e7c1
inc ecx
mov eax, ecx
xor edi, edi
shl eax, 4
cmp dword [eax + 0x488f48], edi
jne 0x41e780
jmp 0x41e7e7
shl ecx, 4
mov eax, dword [ecx + 0x488f54]
or eax, dword [esi + 4]
mov dword [esi + 4], eax
cmp edi, 2
jne 0x41e7d8
mov dword [esi + 0x18], edi
mov ecx, dword [ecx + 0x488f50]
push ecx
lea ecx, [esi + 0x3c]
call fcn.0041a5b0
cmp ebp, edi
jle 0x41e7f9
mov edx, dword [esi]
push 0
push edi
push edx
call fcn.0044fd63
add esp, 0xc
xor eax, eax
cmp edi, eax
jne 0x41e8fd
xor ecx, ecx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], eax
mov word [esp + 0x44], cx
mov edx, dword [esp + 0x1c]
push ebp
push edx
push ecx
mov dword [esp + 0xbc], eax
mov eax, esp
lea ecx, [esp + 0x68]
mov dword [esp + 0x24], esp
mov dword [eax], 0x47181c
call fcn.0041a760
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
mov byte [esp + 0xb0], 1
neg ecx
or ecx, eax
push ecx
call fcn.0044cdb6
add esp, 4
cmp dword [esp + 0x58], ebp
mov ebx, eax
jge 0x41e86f
push ebp
lea ecx, [esp + 0x44]
call fcn.00419710
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
mov dword [esp + 0xa0], ebp
push ebx
lea ecx, [esp + 0x64]
mov dword [eax], str.UTF_16
call fcn.0041a810
push eax
mov eax, dword [esp + 0x58]
push ebx
push eax
push 0
lea ecx, [esp + 0x50]
call fcn.00419d90
push ebx
call fcn.0044e80a
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0040dc30
lea eax, [esp + 0x28]
push eax
call fcn.0041b7a0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0xbc], 2
call fcn.0040ea20
lea ecx, [esp + 0x24]
call fcn.00419610
lea ecx, [esp + 0x5c]
call fcn.00419640
lea ecx, [esp + 0x40]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00419610
cmp dword [esi + 0x50], 0
jne 0x41e919
mov ecx, dword [esp + 0x1c]
cmp byte [ecx], 0x3c
jne 0x41e919
push 0x47181c
lea ecx, [esi + 0x3c]
call fcn.0041a5b0
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044e80a
add esp, 4
jmp 0x41e9c2
test cl, 0x20
je 0x41e9d1
test cl, 0x40
je 0x41e951
push 2
push 0
push eax
call fcn.0044fd63
mov eax, dword [esi]
push eax
call fcn.0044fc6b
add esp, 0x10
mov dword [esi + 0x10], eax
xor ecx, ecx
cmp dword [0x488f48], ecx
je 0x41e9d1
mov edx, dword [esi + 4]
xor eax, eax
test dword [eax + 0x488f54], edx
jne 0x41e979
add ecx, ebx
mov eax, ecx
shl eax, 4
cmp dword [eax + 0x488f48], edi
jne 0x41e960
jmp 0x41e9d1
shl ecx, 4
mov ebp, ecx
mov edi, dword [ebp + 0x488f4c]
cmp edi, 2
jne 0x41e98c
mov dword [esi + 0x18], edi
mov ecx, dword [ebp + 0x488f50]
push ecx
lea ecx, [esi + 0x3c]
call fcn.0041a5b0
cmp dword [esi + 0x10], 0
je 0x41e9a5
xor edi, edi
jmp 0x41e9d1
mov edx, dword [esi]
mov eax, dword [ebp + 0x488f48]
push edx
push 1
push edi
push eax
call fcn.0044f1c3
add esp, 0x10
cmp eax, 1
sete byte [esp + 0x17]
cmp byte [esp + 0x17], 0
je 0x41e6e6
mov bl, byte [esp + 0x17]
test byte [esi + 4], 0x40
je 0x41e9df
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x41e9e2
mov dword [esi + 0x14], edi
test edi, edi
je 0x41ea13
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [esp + 0x2c], esp
push edx
mov dword [eax], 0x474d38
call fcn.0041e3d0
add esp, 0x18
mov al, bl
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0044e030
add esp, 0xa0
ret 4