Function at 0x1003eef0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x1003f008
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.10050780
add esp, 0xc
lea edx, [ebp - 0x414]
mov dword [ebp - 0x628], edx
mov eax, dword [ebp - 0x628]
add eax, 2
mov dword [ebp - 0x654], eax
mov ecx, dword [ebp - 0x628]
mov dx, word [ecx]
mov word [ebp - 0x632], dx
add dword [ebp - 0x628], 2
cmp word [ebp - 0x632], 0
jne 0x1003ef40
mov eax, dword [ebp - 0x628]
sub eax, dword [ebp - 0x654]
sar eax, 1
mov dword [ebp - 0x658], eax
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x630], ecx
cmp dword [ebp - 0x630], 0
jbe 0x1003efe3
mov edx, dword [ebp - 0x630]
movzx eax, word [ebp + edx*2 - 0x416]
cmp eax, 0x2f
je 0x1003efb0
mov ecx, dword [ebp - 0x630]
movzx edx, word [ebp + ecx*2 - 0x416]
cmp edx, 0x5c
jne 0x1003efe3
mov eax, dword [ebp - 0x630]
lea ecx, [eax + eax - 2]
mov dword [ebp - 0x638], ecx
cmp dword [ebp - 0x638], 0x208
jae 0x1003efce
jmp 0x1003efd3
call fcn.1004a493
xor edx, edx
mov eax, dword [ebp - 0x638]
mov word [ebp + eax - 0x414], dx
lea ecx, [ebp - 0x414]
push ecx
call fcn.1003f270
add esp, 4
movzx edx, al
test edx, edx
jne 0x1003f008
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
jne 0x1003f017
jmp 0x1003f260
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x624], eax
mov ecx, dword [ebp - 0x624]
mov dword [ebp - 0x620], ecx
mov edx, dword [ebp - 0x620]
movzx eax, word [edx]
test eax, eax
je 0x1003f072
mov ecx, dword [ebp - 0x620]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0x1003f055
mov eax, dword [ebp - 0x620]
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x1003f061
mov edx, dword [ebp - 0x620]
mov dword [ebp - 0x624], edx
mov eax, dword [ebp - 0x620]
add eax, 2
mov dword [ebp - 0x620], eax
jmp 0x1003f02c
mov ecx, dword [ebp - 0x624]
mov dword [ebp - 0x640], ecx
mov edx, dword [ebp - 0x624]
cmp edx, dword [ebp + 0xc]
je 0x1003f102
mov eax, dword [ebp - 0x624]
sub eax, dword [ebp + 0xc]
sar eax, 1
shl eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x61c]
push edx
call fcn.1004dfd0
add esp, 0xc
mov eax, dword [ebp - 0x624]
sub eax, dword [ebp + 0xc]
sar eax, 1
shl eax, 1
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0x208
jae 0x1003f0cb
jmp 0x1003f0d0
call fcn.1004a493
xor ecx, ecx
mov edx, dword [ebp - 0x63c]
mov word [ebp + edx - 0x61c], cx
lea eax, [ebp - 0x61c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003eef0
add esp, 8
mov edx, dword [ebp - 0x640]
add edx, 2
mov dword [ebp - 0x640], edx
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x644], ecx
cmp dword [ebp - 0x644], 0x208
jae 0x1003f11e
jmp 0x1003f123
call fcn.1004a493
xor edx, edx
mov eax, dword [ebp - 0x644]
mov word [ebp + eax - 0x20c], dx
cmp dword [ebp + 8], 0
je 0x1003f151
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.10050780
add esp, 0xc
mov eax, 2
imul ecx, eax, 0x103
mov dword [ebp - 0x648], ecx
cmp dword [ebp - 0x648], 0x208
jae 0x1003f170
jmp 0x1003f175
call fcn.1004a493
xor edx, edx
mov eax, dword [ebp - 0x648]
mov word [ebp + eax - 0x20c], dx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x62c], ecx
mov edx, dword [ebp - 0x62c]
add edx, 2
mov dword [ebp - 0x65c], edx
mov eax, dword [ebp - 0x62c]
mov cx, word [eax]
mov word [ebp - 0x634], cx
add dword [ebp - 0x62c], 2
cmp word [ebp - 0x634], 0
jne 0x1003f1a0
mov edx, dword [ebp - 0x62c]
sub edx, dword [ebp - 0x65c]
sar edx, 1
mov dword [ebp - 0x660], edx
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x64c], eax
mov ecx, 0x104
sub ecx, dword [ebp - 0x64c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x64c]
lea ecx, [ebp + eax*2 - 0x20c]
push ecx
call fcn.10050780
add esp, 0xc
mov edx, 2
imul eax, edx, 0x103
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0x208
jae 0x1003f226
jmp 0x1003f22b
call fcn.1004a493
xor ecx, ecx
mov edx, dword [ebp - 0x650]
mov word [ebp + edx - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.1003f270
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x1003f260
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret