Function at 0x403690
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4218fd
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x42d02c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x314], ebx
cmp dword [ebx + 0xec], 0x10
lea ecx, [ebx + 0xd8]
jb 0x4036d7
mov ecx, dword [ecx]
lea edx, [ebp - 0x118]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4036e0
lea ecx, [ebp - 0x118]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4036f4
mov eax, dword [str.Image_save]
mov dword [ecx], eax
mov eax, dword [0x4236b8]
mov dword [ecx + 4], eax
mov ax, word [0x4236bc]
mov word [ecx + 8], ax
mov al, byte [0x4236be]
mov byte [ecx + 0xa], al
mov eax, dword [0x42dc1c]
test eax, eax
je 0x40372d
mov eax, dword [eax + 8]
jmp 0x40372f
xor eax, eax
push eax
push 4
push 0x4236c0
mov ecx, 0x42db58
call fcn.0040f730
cmp eax, 7
je 0x4043bf
lea ecx, [ebp - 0x378]
call fcn.0040d4e0
mov eax, dword [ebx + 0xc4]
lea ecx, [ebp - 0x378]
mov dword [ebp - 4], 0
push dword [eax + 8]
call fcn.00401c70
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0xf
mov byte [ebp - 0x19c], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0xf
mov byte [ebp - 0x154], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0xf
mov byte [ebp - 0x178], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
push 0x105
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00411180
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403896
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.004055f0
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00406550
push str.SilkysConnect
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.00402b10
cmp dword [ebp - 0x2fc], 0x10
lea eax, [ebp - 0x310]
push dword [ebp - 0x300]
cmovae eax, dword [ebp - 0x310]
lea ecx, [ebp - 0x19c]
push eax
mov byte [ebp - 4], 7
call fcn.004055f0
lea ecx, [ebp - 0x310]
call fcn.00402a10
lea ecx, [ebp - 0x1b4]
call fcn.00402a10
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
mov dword [ebp - 0x120], 0
cmovae eax, dword [ebp - 0x130]
mov byte [ebp - 4], 3
mov byte [eax], 0
mov edx, dword [ebp - 0x11c]
cmp edx, 0x10
jb 0x403985
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40397b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4043e0
push edx
push ecx
call fcn.0041049c
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp dword [ebp - 0x188], 0x10
lea eax, [ebp - 0x19c]
mov ebx, dword [ebp - 0x18c]
mov esi, 0x16
cmovae eax, dword [ebp - 0x19c]
mov byte [ebp - 4], 8
mov dword [ebp - 0x2f8], eax
cmp ebx, 0xf
ja 0x4039f6
push ebx
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x120], ebx
push eax
call fcn.00411780
mov byte [ebp + ebx - 0x130], 0
jmp 0x403a54
cmp ebx, 0x7fffffff
ja 0x4043e5
mov edi, ebx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x403a16
mov edi, 0x7fffffff
jmp 0x403a1b
cmp edi, esi
cmovb edi, esi
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x130]
call fcn.00405590
push ebx
push dword [ebp - 0x2f8]
mov esi, eax
mov dword [ebp - 0x120], ebx
push esi
mov dword [ebp - 0x11c], edi
call fcn.00411780
mov byte [esi + ebx], 0
mov dword [ebp - 0x130], esi
mov esi, 0x16
add esp, 0xc
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x154]
call fcn.00406550
cmp dword [ebp - 0x2fc], 0x10
lea eax, [ebp - 0x310]
push dword [ebp - 0x300]
cmovae eax, dword [ebp - 0x310]
lea ecx, [ebp - 0x154]
push eax
mov byte [ebp - 4], 0xa
call fcn.004055f0
lea ecx, [ebp - 0x310]
call fcn.00402a10
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
mov dword [ebp - 0x120], 0
cmovae eax, dword [ebp - 0x130]
mov byte [ebp - 4], 3
mov byte [eax], 0
mov edx, dword [ebp - 0x11c]
cmp edx, 0x10
jb 0x403b08
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403afe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4043ea
push edx
push ecx
call fcn.0041049c
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp dword [ebp - 0x140], 0x10
lea eax, [ebp - 0x154]
mov ebx, dword [ebp - 0x144]
cmovae eax, dword [ebp - 0x154]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x2f8], eax
cmp ebx, 0xf
ja 0x403b74
push ebx
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x120], ebx
push eax
call fcn.00411780
mov byte [ebp + ebx - 0x130], 0
jmp 0x403bce
cmp ebx, 0x7fffffff
ja 0x4043ef
mov edi, ebx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x403b94
mov edi, 0x7fffffff
jmp 0x403b9a
cmp edi, 0x16
cmovb edi, esi
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x130]
call fcn.00405590
push ebx
push dword [ebp - 0x2f8]
mov esi, eax
mov dword [ebp - 0x120], ebx
push esi
mov dword [ebp - 0x11c], edi
call fcn.00411780
mov byte [esi + ebx], 0
mov dword [ebp - 0x130], esi
add esp, 0xc
push str.doujin
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x130]
call fcn.00402b10
push eax
lea eax, [ebp - 0x310]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x154]
call fcn.00406550
cmp dword [ebp - 0x2fc], 0x10
lea eax, [ebp - 0x310]
push dword [ebp - 0x300]
cmovae eax, dword [ebp - 0x310]
lea ecx, [ebp - 0x154]
push eax
mov byte [ebp - 4], 0xe
call fcn.004055f0
lea ecx, [ebp - 0x310]
call fcn.00402a10
lea ecx, [ebp - 0x1b4]
call fcn.00402a10
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x130]
mov byte [eax], 0
mov edx, dword [ebp - 0x11c]
cmp edx, 0x10
jb 0x403c98
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403c8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4043f4
push edx
push ecx
call fcn.0041049c
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp dword [ebp - 0x140], 0x10
lea eax, [ebp - 0x154]
mov ebx, dword [ebp - 0x144]
cmovae eax, dword [ebp - 0x154]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x2f8], eax
cmp ebx, 0xf
ja 0x403d04
push ebx
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x120], ebx
push eax
call fcn.00411780
mov byte [ebp + ebx - 0x130], 0
jmp 0x403d63
cmp ebx, 0x7fffffff
ja 0x4043f9
mov edi, ebx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x403d24
mov edi, 0x7fffffff
jmp 0x403d2f
cmp edi, 0x16
mov eax, 0x16
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x130]
call fcn.00405590
push ebx
push dword [ebp - 0x2f8]
mov esi, eax
mov dword [ebp - 0x120], ebx
push esi
mov dword [ebp - 0x11c], edi
call fcn.00411780
mov byte [esi + ebx], 0
mov dword [ebp - 0x130], esi
add esp, 0xc
push str.save
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x130]
call fcn.00402b10
push eax
lea eax, [ebp - 0x310]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x178]
call fcn.00406550
cmp dword [ebp - 0x2fc], 0x10
lea eax, [ebp - 0x310]
push dword [ebp - 0x300]
cmovae eax, dword [ebp - 0x310]
lea ecx, [ebp - 0x178]
push eax
mov byte [ebp - 4], 0x12
call fcn.004055f0
lea ecx, [ebp - 0x310]
call fcn.00402a10
lea ecx, [ebp - 0x1b4]
call fcn.00402a10
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x130]
mov byte [eax], 0
mov edx, dword [ebp - 0x11c]
cmp edx, 0x10
jb 0x403e2d
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403e23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4043fe
push edx
push ecx
call fcn.0041049c
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp dword [ebp - 0x188], 0x10
lea eax, [ebp - 0x19c]
mov edi, dword [ebp - 0x18c]
cmovae eax, dword [ebp - 0x19c]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x2f8], eax
cmp edi, 0xf
ja 0x403e9f
push edi
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x120], edi
push eax
call fcn.00411780
mov byte [ebp + edi - 0x130], 0
mov ebx, dword [ebp - 0x130]
jmp 0x403efe
cmp edi, 0x7fffffff
ja 0x404403
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x403ebf
mov esi, 0x7fffffff
jmp 0x403eca
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x130]
call fcn.00405590
push edi
push dword [ebp - 0x2f8]
mov ebx, eax
mov dword [ebp - 0x120], edi
push ebx
mov dword [ebp - 0x11c], esi
call fcn.00411780
mov byte [edi + ebx], 0
mov dword [ebp - 0x130], ebx
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x2f4]
lea esi, [ebp - 0x130]
cmovae esi, ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x403f31
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
mov dword [ebp - 0x120], 0
cmovae eax, dword [ebp - 0x130]
mov byte [eax], 0
mov edx, dword [ebp - 0x11c]
cmp edx, 0x10
jb 0x403f8c
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403f82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404408
push edx
push ecx
call fcn.0041049c
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp dword [ebp - 0x140], 0x10
lea eax, [ebp - 0x154]
mov edi, dword [ebp - 0x144]
cmovae eax, dword [ebp - 0x154]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x2f8], eax
cmp edi, 0xf
ja 0x403ffe
push edi
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x120], edi
push eax
call fcn.00411780
mov byte [ebp + edi - 0x130], 0
mov ebx, dword [ebp - 0x130]
jmp 0x40405d
cmp edi, 0x7fffffff
ja 0x40440d
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x40401e
mov esi, 0x7fffffff
jmp 0x404029
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x130]
call fcn.00405590
push edi
push dword [ebp - 0x2f8]
mov ebx, eax
mov dword [ebp - 0x120], edi
push ebx
mov dword [ebp - 0x11c], esi
call fcn.00411780
mov byte [ebx + edi], 0
mov dword [ebp - 0x130], ebx
add esp, 0xc
lea eax, [ebp - 0x2f4]
cmp dword [ebp - 0x11c], 0x10
lea esi, [ebp - 0x130]
cmovae esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
jne 0x404090
push 0
push esi
call edi
lea ecx, [ebp - 0x130]
call fcn.00402a10
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp dword [ebp - 0x164], 0x10
lea eax, [ebp - 0x178]
push dword [ebp - 0x168]
cmovae eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x130]
push eax
mov byte [ebp - 4], 0x15
call fcn.004055f0
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x2f4]
lea esi, [ebp - 0x130]
cmovae esi, dword [ebp - 0x130]
push eax
push esi
call ebx
cmp eax, 0xffffffff
jne 0x404112
push 0
push esi
call edi
lea ecx, [ebp - 0x130]
call fcn.00402a10
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp dword [ebp - 0x164], 0x10
lea eax, [ebp - 0x178]
push dword [ebp - 0x168]
cmovae eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x130]
push eax
mov byte [ebp - 4], 0x16
call fcn.004055f0
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
mov ecx, dword [ebp - 0x314]
cmovae eax, dword [ebp - 0x130]
push eax
mov byte [ebp - 4], 0x17
call fcn.00402ef0
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 3
call fcn.00402a10
push dword [ebp - 0x374]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x42dc1c]
test eax, eax
je 0x4041b9
mov eax, dword [eax + 8]
jmp 0x4041bb
xor eax, eax
push eax
push 0
push 0x423708
mov ecx, 0x42db58
call fcn.0040f730
mov ecx, dword [0x42dc1c]
add ecx, 4
push 5
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, dword [ebp - 0x160]
test esi, esi
je 0x40426e
mov edi, dword [ebp - 0x15c]
cmp esi, edi
je 0x404209
mov ecx, esi
call fcn.00402a10
add esi, 0x18
cmp esi, edi
jne 0x4041f5
mov esi, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x158]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x404246
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404412
push ecx
push esi
call fcn.0041049c
add esp, 8
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x178]
call fcn.00402a10
mov esi, dword [ebp - 0x13c]
test esi, esi
je 0x40430a
mov edi, dword [ebp - 0x138]
cmp esi, edi
je 0x4042a5
mov ecx, esi
call fcn.00402a10
add esi, 0x18
cmp esi, edi
jne 0x404291
mov esi, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x134]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4042e2
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404412
push ecx
push esi
call fcn.0041049c
add esp, 8
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x154]
call fcn.00402a10
mov esi, dword [ebp - 0x184]
test esi, esi
je 0x4043a9
mov edi, dword [ebp - 0x180]
cmp esi, edi
je 0x404344
nop dword [eax]
mov ecx, esi
call fcn.00402a10
add esi, 0x18
cmp esi, edi
jne 0x404330
mov esi, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x17c]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x404381
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404412
push ecx
push esi
call fcn.0041049c
add esp, 8
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0
lea ecx, [ebp - 0x19c]
call fcn.00402a10
lea ecx, [ebp - 0x378]
call fcn.0040d510
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004104aa
mov esp, ebp
pop ebp
ret
call fcn.004135ef
call fcn.00405580
call fcn.004135ef
call fcn.00405580
call fcn.004135ef
call fcn.00405580
call fcn.004135ef
call fcn.00405580
call fcn.004135ef
call fcn.00405580
call fcn.004135ef
int3