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

Disassembly:
push ebp
sub esp, 0xa0
lea ebp, [esp - 4]
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0xa0], eax
push 0x24
mov eax, 0x10149c9b
call fcn.101018b2
mov eax, dword [ebp + 0xb4]
mov esi, dword [ebp + 0xb8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc4]
mov ebx, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
push 0x50
xor edi, edi
push edi
push esi
mov dword [ebp - 4], 1
call fcn.101027c0
add esp, 0xc
push edi
lea ecx, [ebp + 0xc0]
mov dword [ebp - 0x2c], edi
call fcn.10001a82
mov edi, eax
test edi, edi
je 0x100d58bc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x100d58c2
and dword [ebp - 0x10], 0
jmp 0x100d58dd
add eax, eax
mov dword [ebp - 0x1c], eax
call fcn.10102de0
mov eax, esp
push 0
push dword [ebp - 0x1c]
push edi
push eax
call fcn.1000c619
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp + 0xbc]
call fcn.10001a82
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x100d5fc2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x100d5fc2
lea edi, [eax + eax]
mov eax, edi
call fcn.10102de0
mov eax, esp
push 0
push edi
push dword [ebp - 0x1c]
push eax
call fcn.1000c619
test eax, eax
mov dword [ebp - 0x14], eax
je 0x100d5fc2
cmp dword [ebp - 0x10], 0
je 0x100d5fc2
mov ecx, dword [ebx + 0x34]
inc ecx
and dword [esi + 0x18], 0
mov dword [esi + 0x14], ecx
mov ecx, dword [ebx + 0x150]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp + 0xb0]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebx + 0x38]
mov dword [esi], ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d595a
sub eax, edi
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov word [esi + 0x2c], cx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100d596f
sub eax, edi
mov word [esi + 0x34], ax
push 0xa0
movzx eax, cx
mov edi, 0x1019f494
push edi
push eax
push dword [ebp - 0x14]
call fcn.100567bd
movzx eax, word [esi + 0x34]
push 0xa0
push edi
push eax
push dword [ebp - 0x10]
call fcn.100567bd
push 2
push 0
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0x2c
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
call fcn.101061e8
mov dword [esi + 0x28], eax
push dword [ebx + 0x14c]
movzx eax, word [esi + 0x2c]
xor edi, edi
inc edi
push edi
push eax
push dword [ebp - 0x14]
call fcn.10103ca7
add esp, 0x14
cmp eax, edi
jne 0x100d5fc2
push dword [ebx + 0x14c]
call fcn.101061e8
mov dword [esi + 0x30], eax
push dword [ebx + 0x14c]
movzx eax, word [esi + 0x34]
push edi
push eax
push dword [ebp - 0x10]
call fcn.10103ca7
add esp, 0x14
cmp eax, edi
jne 0x100d5fc2
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
mov ecx, ebx
call fcn.100d4d79
test eax, eax
je 0x100d5a96
cmp dword [ebp - 0x10], 0
je 0x100d5a96
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x100d5a84
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [esi + 0x24], eax
push dword [ebx + 0x14c]
call fcn.101061e8
mov dword [esi + 0x20], eax
push dword [ebx + 0x14c]
push edi
push dword [esi + 0x24]
push dword [ebp - 0x24]
call fcn.10103ca7
add esp, 0x14
cmp eax, edi
je 0x100d5a84
and dword [esi + 0x24], 0
and dword [esi + 0x20], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
cmp dword [ebx + 0x28], eax
je 0x100d5e03
push 0x4c
push eax
mov dword [ebp], eax
lea eax, [ebp + 4]
push eax
call fcn.101027c0
and dword [ebp + 0x50], 0
push 0x4c
lea eax, [ebp + 0x54]
push 0
push eax
call fcn.101027c0
mov eax, dword [ebx + 0x28]
and dword [ebp - 0x14], 0
push 0
push eax
push dword [ebx + 0x14c]
mov dword [ebp - 0x10], eax
call fcn.10105fcb
add esp, 0x24
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
lea eax, [ebp + 0x50]
push edi
push 0x50
push eax
call fcn.101034cc
add esp, 0x10
cmp eax, edi
jne 0x100d5cac
mov eax, dword [ebp + 0x68]
cmp eax, dword [esi + 0x18]
jb 0x100d5c43
ja 0x100d5b1b
mov eax, dword [ebp + 0x64]
cmp eax, dword [esi + 0x14]
jb 0x100d5c43
cmp dword [ebp - 0x14], edi
mov eax, dword [ebp + 0x58]
je 0x100d5c82
or dword [ebp - 0x14], 0xffffffff
test eax, eax
jne 0x100d5c53
push 2
push 0
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
call fcn.101061e8
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
je 0x100d5fc2
mov eax, dword [ebp + 0x58]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
push dword [ebx + 0x14c]
push edi
push 0x50
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
mov eax, dword [esi + 4]
push 0
add eax, 8
push eax
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
mov esi, dword [ebp - 0x18]
push edi
push 4
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
push 0
push 0x24
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
push edi
push 4
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x100d5c39
push 0
add eax, 4
push eax
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
push edi
push 4
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
mov eax, dword [esi]
mov dword [ebx + 0x28], eax
jmp 0x100d5ec4
cmp dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0x54]
je 0x100d5c98
test eax, eax
mov dword [ebp - 0x14], edi
je 0x100d5cbc
push 0x14
pop ecx
push 0
push eax
push dword [ebx + 0x14c]
lea edi, [ebp]
lea esi, [ebp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], eax
call fcn.10105fcb
mov esi, dword [ebp - 0x20]
xor edi, edi
add esp, 0xc
inc edi
test eax, eax
je 0x100d5ae4
jmp 0x100d5cac
push 0x14
pop ecx
lea esi, [ebp]
lea edi, [ebp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x20]
xor edi, edi
mov dword [ebp - 0x10], eax
inc edi
jmp 0x100d5cbc
push 0x14
pop ecx
lea esi, [ebp]
lea edi, [ebp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x20]
xor edi, edi
mov dword [ebp - 0x10], eax
inc edi
cmp dword [ebp - 0x14], 0
je 0x100d5fc2
jle 0x100d5b33
push 2
push 0
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
call fcn.101061e8
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
je 0x100d5fc2
mov eax, dword [ebp + 0x54]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
push dword [ebx + 0x14c]
push edi
push 0x50
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
mov esi, dword [ebp - 0x18]
push edi
push 4
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
push 0
push 0x24
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
push edi
push 4
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
mov eax, dword [esi]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0x54]
test eax, eax
push 0
je 0x100d5dcc
add eax, 8
push eax
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
push edi
push 4
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
je 0x100d5ec4
jmp 0x100d5fc2
push 0x28
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
push edi
push 4
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
jmp 0x100d5ebf
push 2
push eax
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
call fcn.101061e8
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
je 0x100d5fc2
push dword [ebx + 0x14c]
push edi
push 0x50
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
push 0
push 0x24
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
mov esi, dword [ebp - 0x18]
push edi
push 4
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
push 0
push 0x28
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
push edi
push 4
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
mov eax, dword [esi]
mov dword [ebx + 0x28], eax
mov eax, dword [esi]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0xb0]
test eax, eax
push 0
je 0x100d6003
add eax, 0x10
push eax
push dword [ebx + 0x14c]
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
push edi
push 4
push esi
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
mov eax, dword [ebx + 0x30]
xor esi, esi
push esi
push 0x2c
push dword [ebx + 0x14c]
inc eax
mov dword [ebp - 0x30], eax
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
lea eax, [ebp - 0x30]
push edi
push 4
push eax
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x38]
push esi
push 0x34
push dword [ebx + 0x14c]
inc eax
mov dword [ebp - 0x28], eax
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
lea eax, [ebp - 0x28]
push edi
push 4
push eax
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x34]
push esi
push 0x30
push dword [ebx + 0x14c]
inc eax
mov dword [ebp - 0x1c], eax
call fcn.10105fcb
add esp, 0xc
test eax, eax
jne 0x100d5fc2
push dword [ebx + 0x14c]
lea eax, [ebp - 0x1c]
push edi
push 4
push eax
call fcn.10103ca7
add esp, 0x10
cmp eax, edi
jne 0x100d5fc2
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x34], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp + 0xbc]
call fcn.100015d9
lea ecx, [ebp + 0xc0]
call fcn.100015d9
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa0]
xor ecx, ebp
call fcn.101018a3
add ebp, 0xa4
leave
ret 0x1c
mov eax, dword [ebp + 0xac]
add eax, 0x140
jmp 0x100d5ed7