Function at 0x407ba0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
mov eax, dword [0x5f3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x45c], edx
mov dword [ebp - 0x42c], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x3c]
mov dword [ebp - 0x498], edi
mov edi, dword [ebp + 0x40]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x440], edi
mov edi, dword [ebp + 0x44]
mov dword [ebp - 0x49c], edi
mov edi, dword [ebp + 0x48]
mov dword [ebp - 0x4a0], edi
mov edi, dword [ebp + 0x4c]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x460], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x46c], edi
mov edi, dword [ebp - 0x45c]
mov dword [ebp - 0x43c], ebx
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov word [edi], bx
xor edi, edi
mov dword [ebp - 0x448], edx
mov edx, dword [ebp + 0x18]
mov word [ecx], di
mov word [eax], di
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x44c], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x464], edx
mov word [eax], di
mov eax, dword [ebp - 0x448]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x30]
mov dword [ebp - 0x450], edx
mov word [eax], di
mov eax, dword [ebp - 0x44c]
mov edx, dword [ebp + 0x24]
mov ebx, dword [ebp - 0x43c]
mov dword [ebp - 0x454], edx
mov word [eax], di
mov eax, dword [ebp - 0x464]
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x458], edx
mov edx, dword [ebp + 0x2c]
mov word [eax], di
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x468], edx
mov edx, dword [ebp + 0x34]
mov dword [ebp - 0x430], edx
mov word [eax], di
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x438], 0
mov word [eax], di
mov eax, dword [ebp - 0x458]
mov word [eax], di
mov eax, dword [ebp - 0x468]
mov word [eax], di
xor eax, eax
mov word [esi], ax
mov word [edx], ax
xor edx, edx
mov word [ebx], ax
mov eax, dword [ebp - 0x498]
mov word [eax], dx
mov eax, dword [ebp - 0x440]
mov word [eax], dx
xor eax, eax
mov word [ebp - 0x418], ax
or edx, 0xffffffff
mov eax, dword [ebp - 0x49c]
mov word [eax], dx
mov edx, 0x3e7
mov eax, dword [ebp - 0x4a0]
mov edi, dword [ebp - 0x42c]
mov word [eax], dx
mov eax, dword [ebp - 0x46c]
mov dword [eax], 0xffffffff
movzx eax, word [edi]
cmp eax, 0x22
je 0x407ecd
xor esi, esi
cmp eax, 0x20
je 0x407ec7
mov dword [ebp - 0x424], eax
mov edx, ecx
mov eax, dword [ebp - 0x45c]
sub eax, ecx
mov dword [ebp - 0x470], eax
mov eax, dword [ebp - 0x428]
sub eax, ecx
mov ebx, dword [ebp - 0x470]
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x460]
sub eax, ecx
mov dword [ebp - 0x478], eax
mov eax, dword [ebp - 0x448]
sub eax, ecx
mov dword [ebp - 0x47c], eax
mov eax, dword [ebp - 0x44c]
sub eax, ecx
mov dword [ebp - 0x480], eax
mov eax, dword [ebp - 0x464]
sub eax, ecx
mov dword [ebp - 0x484], eax
mov eax, dword [ebp - 0x450]
sub eax, ecx
mov dword [ebp - 0x488], eax
mov eax, dword [ebp - 0x454]
sub eax, ecx
mov dword [ebp - 0x48c], eax
mov eax, dword [ebp - 0x458]
sub eax, ecx
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x468]
sub eax, ecx
mov dword [ebp - 0x494], eax
mov eax, dword [ebp - 0x420]
sub eax, ecx
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x418]
sub eax, ecx
mov ecx, edi
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x424]
nop dword [eax + eax]
test ax, ax
je 0x407ec1
mov edi, dword [ebp - 0x474]
inc esi
mov word [ebx + edx], ax
movzx eax, word [ecx]
mov word [edx], ax
movzx eax, word [ecx]
mov word [edi + edx], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x478]
inc dword [ebp - 0x438]
mov word [edi + edx], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x47c]
mov word [edi + edx], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x480]
mov word [edi + edx], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x484]
mov word [edi + edx], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x488]
mov word [edi + edx], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x48c]
mov word [edi + edx], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x490]
mov word [edi + edx], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x494]
mov word [edi + edx], ax
mov edi, dword [ebp - 0x41c]
movzx eax, word [ecx]
mov word [edi + edx], ax
movzx eax, word [ecx]
mov ecx, dword [ebp - 0x434]
mov edi, dword [ebp - 0x42c]
mov word [ecx + edx], ax
lea ecx, [edi + esi*2]
movzx eax, word [ecx]
add edx, 2
cmp eax, 0x20
jne 0x407e00
mov ebx, dword [ebp - 0x43c]
dec esi
jmp 0x408079
movzx eax, word [edi + 2]
mov esi, 1
mov edx, eax
mov dword [ebp - 0x434], edx
cmp eax, 0x22
je 0x408079
mov eax, dword [ebp - 0x428]
mov edx, ecx
sub eax, ecx
mov ebx, dword [ebp - 0x45c]
mov dword [ebp - 0x41c], eax
sub ebx, ecx
mov eax, dword [ebp - 0x460]
sub eax, ecx
mov dword [ebp - 0x494], eax
mov eax, dword [ebp - 0x448]
sub eax, ecx
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x44c]
sub eax, ecx
mov dword [ebp - 0x48c], eax
mov eax, dword [ebp - 0x464]
sub eax, ecx
mov dword [ebp - 0x488], eax
mov eax, dword [ebp - 0x450]
sub eax, ecx
mov dword [ebp - 0x484], eax
mov eax, dword [ebp - 0x454]
sub eax, ecx
mov dword [ebp - 0x480], eax
mov eax, dword [ebp - 0x458]
sub eax, ecx
mov dword [ebp - 0x47c], eax
mov eax, dword [ebp - 0x468]
sub eax, ecx
mov dword [ebp - 0x478], eax
mov eax, dword [ebp - 0x420]
sub eax, ecx
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x418]
sub eax, ecx
lea ecx, [edi + 2]
mov dword [ebp - 0x470], eax
mov eax, dword [ebp - 0x434]
movzx eax, ax
nop word [eax + eax]
mov edi, dword [ebp - 0x41c]
lea edx, [edx + 2]
mov word [edx + ebx - 2], ax
inc esi
movzx eax, word [ecx]
mov word [edx - 2], ax
movzx eax, word [ecx]
mov word [edx + edi - 2], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x494]
inc dword [ebp - 0x438]
mov word [edx + edi - 2], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x490]
mov word [edx + edi - 2], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x48c]
mov word [edx + edi - 2], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x488]
mov word [edx + edi - 2], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x484]
mov word [edx + edi - 2], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x480]
mov word [edx + edi - 2], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x47c]
mov word [edx + edi - 2], ax
movzx eax, word [ecx]
mov edi, dword [ebp - 0x478]
mov word [edx + edi - 2], ax
mov edi, dword [ebp - 0x474]
movzx eax, word [ecx]
mov word [edx + edi - 2], ax
movzx eax, word [ecx]
mov ecx, dword [ebp - 0x470]
mov edi, dword [ebp - 0x42c]
mov word [edx + ecx - 2], ax
lea ecx, [edi + esi*2]
movzx eax, word [ecx]
mov edi, eax
mov dword [ebp - 0x434], edi
mov edi, dword [ebp - 0x42c]
cmp eax, 0x22
jne 0x407fa0
mov ebx, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x438]
add eax, 0xffffffff
js 0x40809c
mov ecx, dword [ebp - 0x428]
nop word [eax + eax]
cmp word [ecx + eax*2], 0x5c
je 0x40809c
sub eax, 1
jns 0x408090
lea eax, [eax + 1]
xor edx, edx
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x428]
push str.Scrapbook_
push eax
mov dword [ebp - 0x424], ecx
mov word [eax + ecx], dx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x428]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4080dd
push eax
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.OyaziViewer.srp
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x420]
xor edx, edx
mov eax, dword [ebp - 0x424]
push str.Image_
push ecx
mov word [ecx + eax], dx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x420]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x408129
push eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x424]
cmp eax, 0x400
jae 0x40875a
xor ecx, ecx
mov word [ebp + eax - 0x418], cx
lea eax, [ebp - 0x418]
push str.Style_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x408175
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x448]
xor edx, edx
mov eax, dword [ebp - 0x424]
push 0x5aa05c
push ecx
mov word [ecx + eax], dx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x44c]
xor edx, edx
mov eax, dword [ebp - 0x424]
push str.zeeGrep.exe
push ecx
mov word [ecx + eax], dx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x450]
xor edx, edx
mov eax, dword [ebp - 0x424]
push str.Favorite.db
push ecx
mov word [ecx + eax], dx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x454]
xor edx, edx
mov eax, dword [ebp - 0x424]
push str.FontFallback.db
push ecx
mov word [ecx + eax], dx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x458]
xor edx, edx
mov eax, dword [ebp - 0x424]
push str.Folder.db
push ecx
mov word [ecx + eax], dx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x438]
xor edx, edx
mov eax, dword [ebp - 0x45c]
push str.HelpOyaziViewer.html
mov dword [eax + ecx*2 - 2], 0x69
mov dword [eax + ecx*2 - 6], 0x6e0069
mov eax, dword [ebp - 0x444]
mov dword [eax + ecx*2 - 2], 0x67
mov dword [eax + ecx*2 - 6], 0x6f006c
mov eax, dword [ebp - 0x460]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x464]
mov dword [eax + ecx*2 - 6], 0x620064
mov word [eax + ecx*2 - 2], dx
mov ecx, dword [ebp - 0x468]
mov eax, dword [ebp - 0x424]
push ecx
mov word [ecx + eax], dx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc esi
cmp word [edi + esi*2], 0x20
jne 0x408456
movzx eax, word [edi + esi*2 + 2]
inc esi
mov ecx, eax
cmp eax, 0x20
je 0x408284
cmp ecx, 0x25
jne 0x40830a
movzx eax, word [edi + esi*2 + 2]
cmp eax, 0x4c
je 0x4082a5
cmp eax, 0x6c
jne 0x40830a
cmp word [edi + esi*2 + 4], 0x3d
jne 0x40830a
movzx eax, word [edi + esi*2 + 6]
add esi, 3
mov edx, esi
cmp eax, 0x20
je 0x4082d0
nop dword [eax]
test ax, ax
je 0x4082d0
movzx eax, word [edi + esi*2 + 2]
inc esi
cmp eax, 0x20
jne 0x4082c0
lea eax, [esi - 1]
mov ecx, edi
push eax
call fcn.00407a50
mov ecx, dword [ebp - 0x46c]
add esp, 4
mov dword [ecx], eax
test eax, eax
jg 0x4082f0
mov dword [ecx], 1
movzx eax, word [edi + esi*2]
test ax, ax
je 0x408456
cmp eax, 0x20
jne 0x40830a
inc esi
cmp word [edi + esi*2], 0x20
je 0x408302
movzx eax, word [edi + esi*2]
xor ecx, ecx
mov edx, esi
cmp eax, 0x22
je 0x408469
test ax, ax
je 0x40835f
movzx edi, ax
mov ebx, esi
mov dword [ebp - 0x444], edi
cmp ax, 0x20
je 0x408359
mov edi, dword [ebp - 0x430]
inc esi
mov word [edi + ecx*2], ax
inc ecx
mov edi, dword [ebp - 0x42c]
cmp word [ebp - 0x444], 0x5c
cmovne ebx, edx
movzx eax, word [edi + esi*2]
mov edx, ebx
test ax, ax
jne 0x408320
mov ebx, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x430]
xor edi, edi
inc edx
mov word [eax + ecx*2], di
mov edi, dword [ebp - 0x42c]
cmp edx, esi
jg 0x408386
mov ax, word [edi + edx*2]
lea ebx, [ebx + 2]
inc edx
mov word [ebx - 2], ax
cmp edx, esi
jle 0x408376
cmp word [edi + esi*2], 0x20
jne 0x408398
nop dword [eax]
inc esi
cmp word [edi + esi*2], 0x20
je 0x408390
cmp word [edi + esi*2], 0x25
jne 0x408747
movzx eax, word [edi + esi*2 + 2]
cmp eax, 0x4c
je 0x4083b6
cmp eax, 0x6c
jne 0x408747
cmp word [edi + esi*2 + 4], 0x3d
jne 0x408747
movzx eax, word [edi + esi*2 + 6]
add esi, 3
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x440], esi
cmp eax, 0x20
je 0x4083f6
nop dword [eax + eax]
test ax, ax
je 0x4083f0
movzx eax, word [edi + esi*2 + 2]
inc esi
cmp eax, 0x20
jne 0x4083e0
mov dword [ebp - 0x420], esi
lea edx, [esi - 1]
xor ebx, ebx
mov ecx, 1
cmp edx, dword [ebp - 0x440]
jl 0x408439
mov esi, dword [ebp - 0x440]
nop
movzx eax, word [edi + edx*2]
add eax, 0xffffffd0
cmp ax, 9
ja 0x40842e
movzx eax, word [edi + edx*2]
sub eax, 0x30
imul eax, ecx
lea ecx, [ecx + ecx*4]
add ebx, eax
add ecx, ecx
dec edx
cmp edx, esi
jge 0x408410
mov esi, dword [ebp - 0x420]
test ebx, ebx
mov eax, 1
cmovle ebx, eax
mov eax, dword [ebp - 0x46c]
mov dword [eax], ebx
cmp word [edi + esi*2], 0
jne 0x408747
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret
inc esi
movzx ebx, word [edi + esi*2]
lea eax, [edi + esi*2]
cmp ebx, 0x22
je 0x4084ba
nop word [eax + eax]
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x434], edx
test bx, bx
je 0x4084ba
mov edx, dword [ebp - 0x430]
inc esi
mov word [edx + ecx*2], bx
inc ecx
cmp word [eax], 0x5c
lea eax, [edi + esi*2]
mov edx, dword [ebp - 0x444]
movzx ebx, word [edi + esi*2]
cmovne edx, dword [ebp - 0x434]
cmp ebx, 0x22
jne 0x408480
mov eax, dword [ebp - 0x430]
xor ebx, ebx
inc edx
mov word [eax + ecx*2], bx
xor ecx, ecx
mov ebx, dword [ebp - 0x43c]
cmp edx, esi
jge 0x4084e1
mov ax, word [edi + edx*2]
inc edx
mov word [ebx + ecx*2], ax
inc ecx
cmp edx, esi
jl 0x4084d3
xor eax, eax
mov word [ebx + ecx*2], ax
cmp word [edi + esi*2], ax
je 0x408747
inc esi
cmp word [edi + esi*2], 0x20
jne 0x408508
nop dword [eax]
inc esi
cmp word [edi + esi*2], 0x20
je 0x408500
cmp word [edi + esi*2], 0x25
jne 0x4085bb
movzx eax, word [edi + esi*2 + 2]
cmp eax, 0x4c
je 0x408526
cmp eax, 0x6c
jne 0x4085bb
cmp word [edi + esi*2 + 4], 0x3d
jne 0x4085bb
movzx eax, word [edi + esi*2 + 6]
add esi, 3
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x430], esi
cmp eax, 0x20
je 0x408566
nop dword [eax + eax]
test ax, ax
je 0x408560
movzx eax, word [edi + esi*2 + 2]
inc esi
cmp eax, 0x20
jne 0x408550
mov dword [ebp - 0x420], esi
lea edx, [esi - 1]
xor ebx, ebx
mov ecx, 1
cmp edx, dword [ebp - 0x430]
jl 0x4085a9
mov esi, dword [ebp - 0x430]
nop
movzx eax, word [edi + edx*2]
add eax, 0xffffffd0
cmp ax, 9
ja 0x40859e
movzx eax, word [edi + edx*2]
sub eax, 0x30
imul eax, ecx
lea ecx, [ecx + ecx*4]
add ebx, eax
add ecx, ecx
dec edx
cmp edx, esi
jge 0x408580
mov esi, dword [ebp - 0x420]
mov eax, 1
test ebx, ebx
cmovle ebx, eax
mov eax, dword [ebp - 0x46c]
mov dword [eax], ebx
movzx eax, word [edi + esi*2]
test ax, ax
je 0x408747
cmp eax, 0x20
jne 0x4085d8
nop dword [eax]
inc esi
cmp word [edi + esi*2], 0x20
je 0x4085d0
movzx eax, word [edi + esi*2]
test ax, ax
je 0x4085f8
cmp ax, 0x2d
je 0x4085f8
cmp ax, 0x22
je 0x4085f8
movzx eax, word [edi + esi*2 + 2]
inc esi
test ax, ax
jne 0x4085e1
cmp word [edi + esi*2], 0x22
jne 0x408633
movzx eax, word [edi + esi*2 + 2]
inc esi
xor ecx, ecx
cmp eax, 0x22
je 0x408626
mov edx, dword [ebp - 0x498]
test ax, ax
je 0x408626
inc esi
mov word [edx + ecx*2], ax
inc ecx
movzx eax, word [edi + esi*2]
cmp eax, 0x22
jne 0x408612
mov eax, dword [ebp - 0x498]
xor edx, edx
inc esi
mov word [eax + ecx*2], dx
movzx eax, word [edi + esi*2]
test ax, ax
je 0x408651
nop dword [eax]
cmp ax, 0x2d
je 0x408651
movzx eax, word [edi + esi*2 + 2]
inc esi
test ax, ax
jne 0x408640
cmp word [edi + esi*2], 0x2d
jne 0x408747
movzx eax, word [edi + esi*2 + 2]
inc esi
xor ecx, ecx
test ax, ax
je 0x408686
nop dword [eax]
cmp ax, 0x2d
je 0x408686
inc esi
mov word [ebp + ecx*2 - 0x18], ax
inc ecx
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x408670
add ecx, ecx
cmp ecx, 0x14
jae 0x40875a
xor eax, eax
mov word [ebp + ecx - 0x18], ax
lea eax, [ebp - 0x41c]
push 0xa
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005694d7
mov ecx, dword [ebp - 0x49c]
add esp, 0xc
mov word [ecx], ax
cmp word [edi + esi*2], 0x2d
jne 0x408747
movzx eax, word [edi + esi*2 + 2]
inc esi
xor ecx, ecx
test ax, ax
je 0x4086e6
nop
cmp ax, 0x2d
je 0x4086e6
inc esi
mov word [ebp + ecx*2 - 0x18], ax
inc ecx
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x4086d0
add ecx, ecx
cmp ecx, 0x14
jae 0x40875a
xor eax, eax
mov word [ebp + ecx - 0x18], ax
lea eax, [ebp - 0x41c]
push 0xa
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005694d7
mov ecx, dword [ebp - 0x4a0]
add esp, 0xc
mov word [ecx], ax
cmp word [edi + esi*2], 0
je 0x408747
movzx ecx, word [edi + esi*2 + 2]
inc esi
mov edx, dword [ebp - 0x440]
xor eax, eax
test cx, cx
je 0x408741
nop dword [eax]
mov word [edx + eax*2], cx
lea esi, [esi + 1]
movzx ecx, word [edi + esi*2]
inc eax
test cx, cx
jne 0x408730
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056060a
mov esp, ebp
pop ebp
ret
call fcn.0056073a
int3