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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e97f
mov eax, dword fs:[0]
push eax
mov eax, 0x5108
call fcn.00497d20
mov eax, dword [0x4cc99c]
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
push 0x7fe
xor ebx, ebx
lea ecx, [ebp - 0x100e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x1010], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x1010]
push 0x400
push edx
call dword [sym.imp.HFUILib.dll_public:_static_struct_HINSTANCE______cdecl_CPaintManagerUI::GetResourceInstance_void_]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x436249
xor eax, eax
mov word [ebp - 0x50f0], ax
mov esi, 7
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x50dc], esi
mov dword [ebp - 0x50e0], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4361e6
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x50f0]
call fcn.004027c0
push 1
push 0xffffffffffffffff
lea edx, [ebp - 0x5110]
mov dword [ebp - 4], ebx
push edx
lea ecx, [ebp - 0x50f0]
mov dword [ebp - 0x5110], 0x5c
call fcn.00408640
cmp eax, 0xffffffff
jne 0x436250
cmp dword [ebp - 0x50dc], 8
jb 0x436249
mov eax, dword [ebp - 0x50f0]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
jmp 0x436b70
push eax
push ebx
lea ecx, [ebp - 0x510c]
push ecx
lea ecx, [ebp - 0x50f0]
call fcn.00408400
push 0x7fe
lea eax, [ebp - 0x80e]
xor edx, edx
push ebx
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x810], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
cmp byte [ebp + 0xe960], bl
je 0x43629a
push 0x10
lea ecx, [ebp - 0x810]
push ecx
jmp 0x4362a3
push 0xb
lea edx, [ebp - 0x810]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [ebp - 0x5048], ax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x5034], esi
mov dword [ebp - 0x5038], ebx
lea edx, [eax + 2]
jmp 0x4362d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4362d0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x5048]
call fcn.004027c0
mov byte [ebp - 4], 2
xor edx, edx
lea eax, [ebp - 0x810]
mov word [ebp - 0x5080], dx
mov dword [ebp - 0x506c], esi
mov dword [ebp - 0x5070], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436314
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x5080]
call fcn.004027c0
mov byte [ebp - 4], 3
xor ecx, ecx
lea eax, [ebp + 0xa08]
mov dword [ebp - 0x50a4], esi
mov dword [ebp - 0x50a8], ebx
mov word [ebp - 0x50b8], cx
lea edx, [eax + 2]
jmp 0x436360
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436360
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp + 0xa08]
push edx
lea ecx, [ebp - 0x50b8]
call fcn.004027c0
push 4
push 0xffffffffffffffff
push 0x4b463c
lea ecx, [ebp - 0x50b8]
mov byte [ebp - 4], 4
call fcn.00408640
cmp eax, 0xffffffff
jg 0x436571
lea eax, [ebp - 0x509c]
push eax
call fcn.00461050
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x4363c0
mov edi, dword [eax]
jmp 0x4363c2
mov edi, eax
cmp edi, ebx
jne 0x4363ca
xor eax, eax
jmp 0x4363f4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x4363e0
xor eax, eax
jmp 0x4363f4
lea eax, [esi + esi]
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403550
push eax
lea ecx, [ebp - 0x502c]
call fcn.00402480
mov byte [ebp - 4], 7
cmp dword [ebp - 0x5088], 0x10
jb 0x43641d
mov ecx, dword [ebp - 0x509c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 7
push str.image_
lea ecx, [ebp - 0x502c]
mov dword [ebp - 0x5088], 0xf
mov dword [ebp - 0x508c], ebx
mov byte [ebp - 0x509c], bl
call fcn.004026a0
mov eax, dword [ebp - 0x502c]
mov edi, 8
cmp dword [ebp - 0x5018], edi
jae 0x43645e
lea eax, [ebp - 0x502c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x108]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436470
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp + 0x108]
push edx
lea ecx, [ebp - 0x502c]
call fcn.004026a0
push 4
push 0x4b463c
lea ecx, [ebp - 0x502c]
call fcn.004026a0
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
cmp esi, ebx
je 0x4364e0
lea eax, [ebp - 0x5110]
push eax
lea ecx, [ebp + 0xa08]
push ecx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x5110], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromFile]
mov edx, dword [ebp - 0x5110]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x4364e2
xor esi, esi
mov ecx, dword [esi + 4]
push ebx
lea eax, [ebp - 0x5114]
push eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
cmp eax, ebx
je 0x4364fb
mov dword [esi + 8], eax
mov edx, dword [ebp - 0x5114]
push edx
call fcn.0045b520
mov ecx, dword [ebp - 0x502c]
add esp, 4
cmp dword [ebp - 0x5018], edi
jae 0x43651e
lea ecx, [ebp - 0x502c]
push ecx
push 0x18
push eax
call fcn.0045c120
mov eax, dword [ebp - 0x502c]
add esp, 0xc
cmp dword [ebp - 0x5018], edi
jae 0x43653e
lea eax, [ebp - 0x502c]
push eax
push 0x4ab4fc
lea eax, [ebp + 0xa08]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x10
cmp dword [ebp - 0x5018], edi
jb 0x436571
mov ecx, dword [ebp - 0x502c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 7
xor edx, edx
mov dword [ebp - 0x50c0], edi
mov dword [ebp - 0x50c4], ebx
mov word [ebp - 0x50d4], dx
push 0x1ffe
lea ecx, [ebp - 0x300e]
xor eax, eax
push ebx
mov byte [ebp - 4], 8
push ecx
mov word [ebp - 0x3010], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 1
push 0x4adfcc
lea ecx, [ebp - 0x5048]
call fcn.004026a0
cmp byte [ebp + 0xe960], bl
jne 0x436835
push 0xa
push str.Programs_
lea ecx, [ebp - 0x5048]
call fcn.004026a0
push edi
push 0x4b7c90
lea ecx, [ebp - 0x5048]
call fcn.004026a0
cmp dword [ebp - 0x5034], 8
mov eax, dword [ebp - 0x5048]
jae 0x436603
lea eax, [ebp - 0x5048]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push eax
call esi
lea eax, [ebp + 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436616
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp + 0x208]
push edx
lea ecx, [ebp - 0x5048]
call fcn.004026a0
cmp dword [ebp - 0x5034], 8
mov eax, dword [ebp - 0x5048]
jae 0x43664d
lea eax, [ebp - 0x5048]
push ebx
push eax
call esi
push 1
push 0x4adfcc
lea ecx, [ebp - 0x5048]
call fcn.004026a0
push 9
push str.Programs
lea ecx, [ebp - 0x5080]
call fcn.004026a0
push 8
push 0x4b7cb4
lea ecx, [ebp - 0x5080]
call fcn.004026a0
lea eax, [ebp + 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436690
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x5080]
call fcn.004026a0
push 1
push 0x4adfcc
lea ecx, [ebp - 0x5080]
call fcn.004026a0
lea eax, [ebp + 0x208]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4366d0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp + 0x208]
push ecx
lea ecx, [ebp - 0x5080]
call fcn.004026a0
push 6
push 0x4b7cc8
lea ecx, [ebp - 0x5080]
call fcn.004026a0
call fcn.004696f0
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x436710
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x50d4]
call fcn.004027c0
xor edx, edx
lea eax, [ebp + 0xa08]
mov word [ebp - 0x5064], dx
mov dword [ebp - 0x5050], edi
mov dword [ebp - 0x5054], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436750
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0xa08]
push eax
lea ecx, [ebp - 0x5064]
call fcn.004027c0
mov byte [ebp - 4], 9
xor ecx, ecx
lea eax, [ebp + 0x108]
mov dword [ebp - 0x5018], edi
mov dword [ebp - 0x501c], ebx
mov word [ebp - 0x502c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436794
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp + 0x108]
push edx
lea ecx, [ebp - 0x502c]
call fcn.004027c0
push ebx
lea eax, [ebp - 0x5064]
push eax
lea ecx, [ebp - 0x502c]
push ecx
lea edx, [ebp - 0x510c]
push edx
lea eax, [ebp - 0x5080]
push eax
lea ecx, [ebp - 0x50d4]
push ecx
mov byte [ebp - 4], 0xa
call fcn.0045bf80
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 0x18
cmp dword [ebp - 0x5018], 8
jb 0x436801
mov edx, dword [ebp - 0x502c]
push edx
call edi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x5050], 8
mov dword [ebp - 0x5018], 7
mov dword [ebp - 0x501c], ebx
mov word [ebp - 0x502c], ax
jb 0x43683b
mov ecx, dword [ebp - 0x5064]
push ecx
call edi
add esp, 4
jmp 0x43683b
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
lea eax, [ebp + 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436844
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp + 0x208]
push edx
lea ecx, [ebp - 0x5048]
call fcn.004026a0
push 4
push 0x4b08a8
lea ecx, [ebp - 0x5048]
call fcn.004026a0
mov esi, dword [sym.imp.MSVCR100.dll_swprintf_s]
lea eax, [ebp + 0x108]
push eax
lea ecx, [ebp + 0x208]
push ecx
push str._title:_s__id:_s
lea edx, [ebp - 0x3010]
push 0x1000
push edx
call esi
push 0x1ffe
lea ecx, [ebp - 0x500e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x5010], ax
call sub.MSVCR100.dll_memset
lea edx, [ebp + 0x188]
push edx
lea eax, [ebp + 0x1208]
push eax
lea ecx, [ebp + 0xa08]
push ecx
push str._s:__im:_s__u:_s__category:_s
lea edx, [ebp - 0x5010]
push 0x1000
push edx
call esi
lea eax, [ebp - 0x5010]
push eax
lea ecx, [ebp + 0x108]
push ecx
call fcn.00461170
add esp, 0x40
xor edx, edx
lea eax, [ebp + 0xa08]
mov word [ebp - 0x509c], dx
mov dword [ebp - 0x5088], 7
mov dword [ebp - 0x508c], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436920
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0xa08]
push eax
lea ecx, [ebp - 0x509c]
call fcn.004027c0
mov byte [ebp - 4], 0xb
mov esi, 7
xor ecx, ecx
lea eax, [ebp - 0x3010]
mov dword [ebp - 0x5050], esi
mov dword [ebp - 0x5054], ebx
mov word [ebp - 0x5064], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436970
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x3010]
push edx
lea ecx, [ebp - 0x5064]
call fcn.004027c0
mov byte [ebp - 4], 0xc
xor eax, eax
mov word [ebp - 0x502c], ax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x5018], esi
mov dword [ebp - 0x501c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4369b4
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x502c]
call fcn.004027c0
push ebx
lea edx, [ebp - 0x509c]
push edx
lea eax, [ebp - 0x5064]
push eax
lea ecx, [ebp - 0x510c]
push ecx
lea edx, [ebp - 0x5048]
push edx
lea eax, [ebp - 0x502c]
push eax
mov byte [ebp - 4], 0xd
call fcn.0045bf80
mov esi, 8
add esp, 0x18
cmp dword [ebp - 0x5018], esi
jb 0x436a1f
mov ecx, dword [ebp - 0x502c]
push ecx
call edi
add esp, 4
xor edx, edx
mov dword [ebp - 0x5018], 7
mov dword [ebp - 0x501c], ebx
mov word [ebp - 0x502c], dx
cmp dword [ebp - 0x5050], esi
jb 0x436a4c
mov eax, dword [ebp - 0x5064]
push eax
call edi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x5050], 7
mov dword [ebp - 0x5054], ebx
mov word [ebp - 0x5064], cx
cmp dword [ebp - 0x5088], esi
jb 0x436a79
mov edx, dword [ebp - 0x509c]
push edx
call edi
add esp, 4
cmp dword [ebp - 0x50c0], esi
jb 0x436a8d
mov eax, dword [ebp - 0x50d4]
push eax
call edi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50c0], 7
mov dword [ebp - 0x50c4], ebx
mov word [ebp - 0x50d4], cx
cmp dword [ebp - 0x50a4], esi
jb 0x436aba
mov edx, dword [ebp - 0x50b8]
push edx
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x50a4], 7
mov dword [ebp - 0x50a8], ebx
mov word [ebp - 0x50b8], ax
cmp dword [ebp - 0x506c], esi
jb 0x436ae7
mov ecx, dword [ebp - 0x5080]
push ecx
call edi
add esp, 4
xor edx, edx
mov dword [ebp - 0x506c], 7
mov dword [ebp - 0x5070], ebx
mov word [ebp - 0x5080], dx
cmp dword [ebp - 0x5034], esi
jb 0x436b14
mov eax, dword [ebp - 0x5048]
push eax
call edi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x5034], 7
mov dword [ebp - 0x5038], ebx
mov word [ebp - 0x5048], cx
cmp dword [ebp - 0x50f8], esi
jb 0x436b41
mov edx, dword [ebp - 0x510c]
push edx
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x50f8], 7
mov dword [ebp - 0x50fc], ebx
mov word [ebp - 0x510c], ax
cmp dword [ebp - 0x50dc], esi
jb 0x436b6e
mov ecx, dword [ebp - 0x50f0]
push ecx
call edi
add esp, 4
mov al, 1
lea esp, [ebp - 0x5124]
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.00497792
mov esp, ebp
pop ebp
ret 0xe95c