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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a27b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x58c920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x20]
push 0
mov dword [ebp - 0xa4], ecx
call fcn.00402930
mov eax, dword [esi + 4]
mov ecx, 0x54478c
test al, 0x40
je 0x411515
mov ecx, 0x544784
jmp 0x41151e
test al, 0x20
je 0x41151e
mov ecx, 0x54477c
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [esi], 0
call fcn.0050d3e2
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x411543
mov ecx, esi
call fcn.0040e670
jmp 0x4118b1
mov ecx, dword [esi + 4]
xor edi, edi
mov byte [ebp - 0x91], 1
mov dword [esi + 0x18], 1
test cl, 0x10
je 0x41179b
push 2
push edi
push eax
call fcn.0050b13e
mov ecx, dword [esi]
push ecx
call fcn.0050b04f
mov edx, dword [esi]
push edi
push edi
push edx
mov dword [esi + 0x10], eax
call fcn.0050b13e
mov eax, dword [esi + 0x10]
mov ebx, 0x400
add esp, 0x1c
cmp eax, ebx
jge 0x411596
mov ebx, eax
test ebx, ebx
je 0x411863
push ebx
call fcn.0041a269
mov ecx, dword [esi]
push ecx
push 1
push ebx
push eax
mov dword [ebp - 0x9c], eax
call fcn.0050ae9e
add esp, 0x14
cmp eax, 1
sete al
mov byte [ebp - 0x91], al
test al, al
je 0x411787
and dword [esi + 4], 0xfffffffa
mov dword [ebp - 0xa0], edi
cmp dword [0x5883d8], edi
je 0x411653
xor eax, eax
lea esp, [esp]
mov ecx, dword [eax + 0x5883dc]
test ecx, ecx
jle 0x41160d
cmp edi, ebx
jge 0x41160d
mov ecx, dword [ebp - 0x9c]
mov cl, byte [ecx + edi]
mov edx, dword [eax + 0x5883d8]
cmp cl, byte [edi + edx]
mov ecx, dword [eax + 0x5883dc]
jne 0x41160d
inc edi
cmp edi, ecx
jl 0x4115ea
mov eax, dword [ebp - 0xa0]
cmp edi, ecx
je 0x41162d
inc eax
mov dword [ebp - 0xa0], eax
xor edi, edi
shl eax, 4
cmp dword [eax + 0x5883d8], edi
jne 0x4115e0
jmp 0x411653
shl eax, 4
mov edx, dword [eax + 0x5883e4]
or edx, dword [esi + 4]
mov dword [esi + 4], edx
cmp edi, 2
jne 0x411644
mov dword [esi + 0x18], edi
mov eax, dword [eax + 0x5883e0]
push eax
lea ecx, [esi + 0x3c]
call fcn.00403610
cmp ebx, edi
jle 0x411665
mov ecx, dword [esi]
push 0
push edi
push ecx
call fcn.0050b13e
add esp, 0xc
xor eax, eax
cmp edi, eax
jne 0x411769
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x9c]
push ebx
push eax
push ecx
mov eax, esp
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x98], esp
mov dword [eax], 0x541264
call fcn.0040d790
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.0041a269
add esp, 4
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x18], ebx
jge 0x4116d8
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040ce40
push ecx
mov eax, esp
mov dword [ebp - 0x50], ebx
mov dword [eax], str.UTF_16
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa0], esp
push eax
lea ecx, [ebp - 0x90]
call fcn.0040d830
mov ebx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x1c]
push eax
push ebx
push ecx
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040d3f0
push ebx
call fcn.0041a274
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x98], esp
mov eax, esp
jae 0x41172c
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x48]
push edx
mov dword [eax], ecx
call fcn.0040eeb0
add esp, 8
push eax
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 2
call fcn.00403670
lea ecx, [ebp - 0x48]
call fcn.0040cc10
lea ecx, [ebp - 0x90]
call fcn.0040cc40
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040cc10
cmp dword [esi + 0x4c], 0
jne 0x411787
mov eax, dword [ebp - 0x9c]
cmp byte [eax], 0x3c
jne 0x411787
push 0x541264
lea ecx, [esi + 0x3c]
call fcn.00403610
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0041a274
add esp, 4
jmp 0x411856
test cl, 0x20
je 0x411863
test cl, 0x40
je 0x4117c1
push 2
push 0
push eax
call fcn.0050b13e
mov edx, dword [esi]
push edx
call fcn.0050b04f
add esp, 0x10
mov dword [esi + 0x10], eax
xor ecx, ecx
cmp dword [0x5883d8], ecx
je 0x411863
mov edx, dword [esi + 4]
xor eax, eax
test dword [eax + 0x5883e4], edx
jne 0x4117ec
inc ecx
mov eax, ecx
shl eax, 4
cmp dword [eax + 0x5883d8], edi
jne 0x4117d4
jmp 0x411863
shl ecx, 4
mov ebx, ecx
mov edi, dword [ebx + 0x5883dc]
cmp edi, 2
jne 0x4117ff
mov dword [esi + 0x18], edi
mov edx, dword [ebx + 0x5883e0]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x98], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411810
sub eax, dword [ebp - 0x98]
lea ecx, [esi + 0x3c]
sar eax, 1
push eax
push edx
call fcn.004031c0
cmp dword [esi + 0x10], 0
je 0x411837
xor edi, edi
jmp 0x411863
mov edx, dword [esi]
mov eax, dword [ebx + 0x5883d8]
push edx
push 1
push edi
push eax
call fcn.0050aa4a
add esp, 0x10
cmp eax, 1
sete byte [ebp - 0x91]
cmp byte [ebp - 0x91], 0
je 0x411537
test byte [esi + 4], 0x40
je 0x411871
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x411874
mov dword [esi + 0x14], edi
test edi, edi
je 0x4118ab
mov edx, dword [ebp - 0xa4]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x98], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [ebp - 0x98], esp
push edx
mov dword [eax], 0x544774
call fcn.004112c0
add esp, 0x18
mov al, byte [ebp - 0x91]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005090f3
mov esp, ebp
pop ebp
ret 4