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

Disassembly:
push 0xffffffffffffffff
push 0x10054c38
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
mov eax, dword [0x10070850]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
lea ecx, [edi + 0x20]
mov dword [esp + 0x1c], ecx
call fcn.10006a70
mov eax, dword [edi + 4]
mov ecx, 0x10063790
test al, 0x40
je 0x10012415
mov ecx, 0x10063798
jmp 0x1001241e
test al, 0x20
je 0x1001241e
mov ecx, 0x100637a0
mov eax, dword [esp + 0x4c]
push ecx
push eax
mov dword [edi], 0
call fcn.1003cac2
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x10012453
push edi
call fcn.10012220
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
mov ecx, dword [edi + 4]
xor ebp, ebp
mov bl, 1
mov dword [edi + 0x18], 1
test cl, 0x10
je 0x10012644
push 2
push ebp
push eax
call fcn.1003cbb6
mov ecx, dword [edi]
add esp, 0xc
push ecx
call fcn.1003cdd8
mov edx, dword [edi]
add esp, 4
push ebp
push ebp
push edx
mov dword [edi + 0x10], eax
call fcn.1003cbb6
mov eax, dword [edi + 0x10]
mov esi, 0x400
add esp, 0xc
cmp eax, esi
jge 0x100124a7
mov esi, eax
test esi, esi
je 0x100126f0
push esi
call fcn.1001dbff
mov ebx, eax
mov eax, dword [edi]
add esp, 4
push eax
push 1
push esi
push ebx
mov dword [esp + 0x24], ebx
call fcn.1003d0e6
add esp, 0x10
cmp eax, 1
sete al
mov byte [esp + 0x13], al
test al, al
je 0x10012636
and dword [edi + 4], 0xfffffffa
xor ecx, ecx
cmp dword [0x10071f40], ecx
je 0x1001255b
xor eax, eax
jmp 0x100124f0
mov edx, dword [eax + 0x10071f44]
test edx, edx
jle 0x1001251b
cmp ebp, esi
jge 0x1001251b
mov ebx, dword [esp + 0x14]
mov edx, dword [eax + 0x10071f40]
mov bl, byte [ebx + ebp]
cmp bl, byte [edx + ebp]
mov edx, dword [eax + 0x10071f44]
jne 0x1001251b
inc ebp
cmp ebp, edx
jl 0x100124fa
cmp ebp, edx
je 0x10012531
inc ecx
mov eax, ecx
xor ebp, ebp
shl eax, 4
cmp dword [eax + 0x10071f40], ebp
jne 0x100124f0
jmp 0x10012557
shl ecx, 4
mov eax, dword [ecx + 0x10071f4c]
or eax, dword [edi + 4]
mov dword [edi + 4], eax
cmp ebp, 2
jne 0x10012548
mov dword [edi + 0x18], ebp
mov ecx, dword [ecx + 0x10071f48]
push ecx
lea ecx, [edi + 0x24]
call fcn.10006690
mov ebx, dword [esp + 0x14]
cmp esi, ebp
jle 0x1001256d
mov edx, dword [edi]
push 0
push ebp
push edx
call fcn.1003cbb6
add esp, 0xc
test ebp, ebp
jne 0x1001261b
lea ecx, [esp + 0x14]
call fcn.10006d90
push esi
push ebx
push ecx
mov eax, esp
mov dword [esp + 0x50], ebp
mov dword [eax], str.UTF_8
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esp
push eax
call fcn.10010a40
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
call fcn.10006c00
push ecx
mov ecx, esp
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], esp
mov dword [ecx], str.UTF_16
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.10010d80
push eax
lea ecx, [esp + 0x18]
call fcn.10017c20
mov edx, dword [esp + 0x14]
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
mov dword [eax], edx
lea eax, [esp + 0x1c]
push eax
call fcn.10014cb0
add esp, 8
lea ecx, [edi + 0x24]
push eax
mov byte [esp + 0x48], 2
call fcn.100069d0
lea ecx, [esp + 0x18]
call fcn.10006d70
lea esi, [esp + 0x20]
call fcn.10012750
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.10006d70
mov edx, dword [edi + 0x24]
cmp dword [edx - 0xc], 0
lea ecx, [edi + 0x24]
jne 0x10012636
cmp byte [ebx], 0x3c
jne 0x10012636
push str.UTF_8
call fcn.10006690
push ebx
call fcn.1001dbf4
add esp, 4
jmp 0x100126e1
test cl, 0x20
je 0x100126f0
test cl, 0x40
je 0x1001266d
push 2
push 0
push eax
call fcn.1003cbb6
mov eax, dword [edi]
add esp, 0xc
push eax
call fcn.1003cdd8
add esp, 4
mov dword [edi + 0x10], eax
xor ecx, ecx
cmp dword [0x10071f40], ecx
je 0x100126f0
mov edx, dword [edi + 4]
xor eax, eax
lea esp, [esp]
test dword [eax + 0x10071f4c], edx
jne 0x10012698
inc ecx
mov eax, ecx
shl eax, 4
cmp dword [eax + 0x10071f40], ebp
jne 0x10012680
jmp 0x100126f0
shl ecx, 4
mov esi, ecx
mov ebp, dword [esi + 0x10071f44]
cmp ebp, 2
jne 0x100126ab
mov dword [edi + 0x18], ebp
mov ecx, dword [esi + 0x10071f48]
push ecx
lea ecx, [edi + 0x24]
call fcn.10006690
cmp dword [edi + 0x10], 0
je 0x100126c4
xor ebp, ebp
jmp 0x100126f0
mov edx, dword [edi]
mov eax, dword [esi + 0x10071f40]
push edx
push 1
push ebp
push eax
call fcn.1003d265
add esp, 0x10
cmp eax, 1
sete byte [esp + 0x13]
cmp byte [esp + 0x13], 0
je 0x10012438
mov bl, byte [esp + 0x13]
test byte [edi + 4], 0x40
je 0x100126fe
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x14], ecx
jmp 0x10012701
mov dword [edi + 0x14], ebp
test ebp, ebp
je 0x10012732
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [esp + 0x28], esp
push edx
mov dword [eax], 0x100637a8
call fcn.100108b0
add esp, 0x18
mov al, bl
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4