Function at 0x1009e990
Capabilities:
Create directory
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100eea1d
mov eax, dword fs:[0]
push eax
mov eax, 0x1610
call fcn.10078100
mov eax, dword [0x10139d20]
xor eax, esp
mov dword [esp + 0x160c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10139d20]
xor eax, esp
push eax
lea eax, [esp + 0x1624]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1634]
mov edi, dword [esp + 0x1638]
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push 0x104
lea eax, [esp + 0x120]
mov esi, ecx
push eax
lea ecx, [esp + 0x94]
push ecx
push ebx
mov dword [esp + 0x38], ebx
call fcn.100a0030
add esp, 0x20
test eax, eax
jne 0x1009ef67
push ebx
call fcn.100a0e00
add esp, 4
test eax, eax
jne 0x1009ef67
push ebx
lea edx, [esp + 0x20]
push fcn.100a0680
push edx
call fcn.1009e6b0
add esp, 0xc
push edi
lea ecx, [esp + 0xd8]
mov dword [esp + 0x1630], ebp
call fcn.10001df0
mov edi, 7
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], ebp
mov word [esp + 0xf4], bp
test dword [esp + 0x84], 0x800
mov byte [esp + 0x162c], 2
lea ecx, [esp + 0x58]
je 0x1009eaf9
lea eax, [esp + 0x10c]
push eax
call fcn.10001d80
push 0xfde9
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, esi
mov byte [esp + 0x1638], 3
call fcn.1009e6e0
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0xfc]
mov byte [esp + 0x1638], 4
call fcn.10002540
cmp dword [esp + 0x48], 8
jb 0x1009ead2
mov eax, dword [esp + 0x34]
push eax
call fcn.10054d78
add esp, 4
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], bp
mov byte [esp + 0x162c], 2
jb 0x1009eb75
mov ecx, dword [esp + 0x5c]
push ecx
jmp 0x1009eb6d
lea edx, [esp + 0x10c]
push edx
call fcn.10001d80
push ebp
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x1638], 5
call fcn.1009e6e0
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0xfc]
mov byte [esp + 0x1638], 6
call fcn.10002540
cmp dword [esp + 0x48], 8
jb 0x1009eb4c
mov edx, dword [esp + 0x34]
push edx
call fcn.10054d78
add esp, 4
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], bp
mov byte [esp + 0x162c], 2
jb 0x1009eb75
mov eax, dword [esp + 0x5c]
push eax
call fcn.10054d78
add esp, 4
mov esi, dword [esp + 0x104]
push 0x40e
lea ecx, [esp + 0x216]
push ebp
push ecx
mov ebx, esi
mov word [esp + 0x21c], bp
call fcn.10077be0
mov eax, dword [esp + 0x100]
add esp, 0xc
cmp dword [esp + 0x108], 8
jae 0x1009ebb4
lea eax, [esp + 0xf4]
lea edx, [esi + esi]
push edx
push eax
lea eax, [esp + 0x218]
push 0x410
push eax
call fcn.10076f31
add esp, 0x10
xor edi, edi
cmp ebx, ebp
lea esi, [esp + 0x210]
jl 0x1009ec8d
nop
movzx eax, word [esp + edi*2 + 0x210]
cmp ax, bp
je 0x1009ec6a
cmp ax, 0x5c
je 0x1009ebf9
cmp ax, 0x2f
jne 0x1009ec5d
mov eax, esi
mov word [esp + edi*2 + 0x210], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x1009ec06
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0xdc]
call fcn.10004160
push 1
push 0x1011e01c
lea ecx, [esp + 0xdc]
call fcn.10004160
cmp dword [esp + 0xec], 8
mov eax, dword [esp + 0xd8]
jae 0x1009ec4e
lea eax, [esp + 0xd8]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea esi, [esp + edi*2 + 0x212]
add edi, 1
cmp edi, ebx
jle 0x1009ebe0
jmp 0x1009ec8d
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x1009ec70
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0xdc]
call fcn.10004160
cmp word [esi], bp
jne 0x1009ed15
mov edi, 8
cmp dword [esp + 0x108], edi
jb 0x1009ecb4
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.10054d78
add esp, 4
cmp dword [esp + 0xec], edi
mov esi, 7
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], ebp
mov word [esp + 0xf4], bp
jb 0x1009ece8
mov edx, dword [esp + 0xd8]
push edx
call fcn.10054d78
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebp
mov word [esp + 0xdc], bp
call fcn.1009e620
add esp, 4
mov eax, 1
jmp 0x1009ef69
mov eax, dword [esp + 0xd8]
mov ebx, 8
cmp dword [esp + 0xec], ebx
jae 0x1009ed31
lea eax, [esp + 0xd8]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1009ed6f
cmp dword [esp + 0x108], ebx
jb 0x1009ed63
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.10054d78
add esp, 4
cmp dword [esp + 0xec], ebx
jmp 0x1009ef17
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.1009e6b0
mov ecx, dword [esp + 0x24]
push 0x1000
lea eax, [esp + 0x630]
push eax
push ecx
call fcn.100a03e0
mov esi, eax
add esp, 0x18
cmp esi, ebp
jl 0x1009edf1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x1009ee20
push ebp
lea edx, [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x62c]
push eax
push edi
mov dword [esp + 0x28], ebp
call ebx
test eax, eax
je 0x1009eee5
cmp dword [esp + 0x14], esi
jne 0x1009eee5
mov edx, dword [esp + 0x18]
push 0x1000
lea ecx, [esp + 0x624]
push ecx
push edx
call fcn.100a03e0
mov esi, eax
add esp, 0xc
cmp esi, ebp
jge 0x1009eda7
lea eax, [esp + 0x4c]
push eax
call fcn.1009e5c0
add esp, 4
lea ecx, [esp + 0xf0]
call fcn.10001e30
lea ecx, [esp + 0xd4]
call fcn.10001e30
lea ecx, [esp + 0x1c]
push ecx
jmp 0x1009ef5f
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x74]
push edx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea edx, [esp + 0x28]
push edx
mov eax, edx
push eax
mov ecx, edx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea edx, [esp + 0x4c]
push edx
call fcn.1009e5c0
mov esi, 8
add esp, 4
cmp dword [esp + 0x108], esi
jb 0x1009ee84
mov eax, dword [esp + 0xf4]
push eax
call fcn.10054d78
add esp, 4
cmp dword [esp + 0xec], esi
mov edi, 7
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], ebp
mov word [esp + 0xf4], bp
jb 0x1009eeb8
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.10054d78
add esp, 4
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], ebp
mov word [esp + 0xdc], bp
call fcn.1009e620
add esp, 4
mov eax, 1
jmp 0x1009ef69
lea eax, [esp + 0x4c]
push eax
call fcn.1009e5c0
mov edi, 8
add esp, 4
cmp dword [esp + 0x108], edi
jb 0x1009ef10
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.10054d78
add esp, 4
cmp dword [esp + 0xec], edi
mov esi, 7
mov word [esp + 0xf4], bp
mov dword [esp + 0x104], ebp
mov dword [esp + 0x108], esi
jb 0x1009ef44
mov edx, dword [esp + 0xd8]
push edx
call fcn.10054d78
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebp
mov word [esp + 0xdc], bp
call fcn.1009e620
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1624]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160c]
xor ecx, esp
call fcn.100773e8
add esp, 0x161c
ret 8