Function at 0x10003720
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000fc27
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], ax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x10], 7
call fcn.10001dc0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
mov ebx, dword [ebp - 0x10]
cmp ebx, 8
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x100037b0
push 1
push 0x10014b48
lea ecx, [ebp - 0x24]
call fcn.10001ee0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x10]
test ecx, ecx
je 0x100037f8
cmp ebx, 8
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x24]
cmovae eax, esi
cmovae edx, esi
lea edi, [eax + ecx*2]
cmp edx, edi
jae 0x100037f8
nop word [eax + eax]
movzx esi, word [edx]
mov ecx, 1
mov eax, 0x10014b48
nop dword [eax]
cmp word [eax], si
je 0x100038cb
add eax, 2
sub ecx, 1
jne 0x100037e0
add edx, 2
cmp edx, edi
jb 0x100037d0
or edx, 0xffffffff
push edx
push 0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x24]
call fcn.10001a60
push eax
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.10003f20
push 0x10014b48
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.100031d0
add esp, 8
mov esi, eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 5
cmp eax, esi
je 0x10003910
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x10003897
mov ecx, dword [ebp - 0x3c]
inc eax
cmp eax, 0x7fffffff
ja 0x10003c43
add eax, eax
cmp eax, 0x1000
jb 0x1000388e
test cl, 0x1f
jne 0x10003c43
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10003c43
sub ecx, eax
cmp ecx, 4
jb 0x10003c43
cmp ecx, 0x23
ja 0x10003c43
mov ecx, eax
push ecx
call fcn.100041b1
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
cmp dword [esi + 0x14], 8
jae 0x100038de
mov eax, dword [esi + 0x10]
add eax, 1
je 0x100038e9
add eax, eax
push eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.10004fd0
add esp, 0xc
jmp 0x100038e9
cmp ebx, 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
sub edx, eax
sar edx, 1
jmp 0x100037fb
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1000390b
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40]
cmp eax, 8
jb 0x10003967
mov ecx, dword [ebp - 0x54]
inc eax
cmp eax, 0x7fffffff
ja 0x10003c43
add eax, eax
cmp eax, 0x1000
jb 0x1000395e
test cl, 0x1f
jne 0x10003c43
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10003c43
sub ecx, eax
cmp ecx, 4
jb 0x10003c43
cmp ecx, 0x23
ja 0x10003c43
mov ecx, eax
push ecx
call fcn.100041b1
add esp, 4
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
cmp eax, 8
jb 0x100039d2
mov ecx, dword [ebp - 0x6c]
inc eax
cmp eax, 0x7fffffff
ja 0x10003c43
add eax, eax
cmp eax, 0x1000
jb 0x100039c9
test cl, 0x1f
jne 0x10003c43
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10003c43
sub ecx, eax
cmp ecx, 4
jb 0x10003c43
cmp ecx, 0x23
ja 0x10003c43
mov ecx, eax
push ecx
call fcn.100041b1
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
cmp eax, 8
jb 0x10003a40
mov ecx, dword [ebp - 0x84]
inc eax
cmp eax, 0x7fffffff
ja 0x10003c43
add eax, eax
cmp eax, 0x1000
jb 0x10003a37
test cl, 0x1f
jne 0x10003c43
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10003c43
sub ecx, eax
cmp ecx, 4
jb 0x10003c43
cmp ecx, 0x23
ja 0x10003c43
mov ecx, eax
push ecx
call fcn.100041b1
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10003a88
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
cmovae edx, dword [ebp - 0x24]
lea edi, [eax + ebx*2]
cmp edx, edi
jae 0x10003a88
movzx esi, word [edx]
mov ecx, 1
mov eax, 0x10014b48
nop dword [eax]
cmp word [eax], si
je 0x10003c2f
add eax, 2
sub ecx, 1
jne 0x10003a70
add edx, 2
cmp edx, edi
jb 0x10003a60
or edx, 0xffffffff
push ebx
lea eax, [edx + 1]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x24]
call fcn.10001a60
mov esi, eax
lea eax, [ebp - 0x24]
cmp eax, esi
je 0x10003ad7
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x10003aba
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10002080
xor eax, eax
mov dword [ebp - 0x10], 7
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
call fcn.10002010
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x70]
cmp eax, 8
jb 0x10003af0
inc eax
push eax
push dword [ebp - 0x84]
call fcn.10002080
xor eax, eax
mov dword [ebp - 0x40], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x54], ax
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x44], 0
push eax
call fcn.10001dc0
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x54]
push eax
call edi
test eax, eax
mov eax, dword [ebp - 0x40]
setne bl
cmp eax, 8
jb 0x10003b3e
inc eax
push eax
push dword [ebp - 0x54]
call fcn.10002080
test bl, bl
jne 0x10003b56
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
push 0
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x14]
cmp ecx, 1
ja 0x100037aa
xor eax, eax
mov dword [ebp - 0x40], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x54], ax
lea ecx, [ebp - 0x54]
lea eax, [ebp + 8]
mov dword [ebp - 0x44], 0
push eax
call fcn.10001dc0
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
call edi
test eax, eax
mov eax, dword [ebp - 0x40]
setne bl
cmp eax, 8
jb 0x10003baa
inc eax
push eax
push dword [ebp - 0x54]
call fcn.10002080
xor eax, eax
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], 0
cmp eax, 8
jb 0x10003bd0
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10002080
xor eax, eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
cmp eax, 8
jb 0x10003bf6
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.10002080
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
cmp ecx, 8
jb 0x10003c1c
inc ecx
push ecx
push dword [ebp + 8]
call fcn.10002080
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
sub edx, eax
sar edx, 1
jmp 0x10003a8b
call fcn.1000772c
int3