Function at 0x431d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49de8e
mov eax, dword fs:[0]
push eax
mov eax, 0x4ae0
call fcn.00497d20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x206
xor ebx, ebx
mov esi, ecx
lea edx, [ebp - 0x21a]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x4ae4], eax
mov word [ebp - 0x21c], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
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 0x431e74
mov edi, 7
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x4a94], edi
mov dword [ebp - 0x4a98], ebx
mov word [ebp - 0x4aa8], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431e11
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x4aa8]
call fcn.004027c0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x4ae8]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x4aa8]
mov dword [ebp - 0x4ae8], 0x5c
call fcn.00408640
cmp eax, 0xffffffff
jne 0x431e7b
cmp dword [ebp - 0x4a94], 8
jb 0x431e74
mov ecx, dword [ebp - 0x4aa8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
jmp 0x432389
push eax
push ebx
lea edx, [ebp - 0x4ae0]
push edx
lea ecx, [ebp - 0x4aa8]
call fcn.00408400
push 0x7fe
lea ecx, [ebp - 0xa1a]
xor eax, eax
push ebx
mov byte [ebp - 4], 1
push ecx
mov word [ebp - 0xa1c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x10
lea edx, [ebp - 0xa1c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [ebp - 0x4a70], ax
lea eax, [ebp - 0xa1c]
mov dword [ebp - 0x4a5c], edi
mov dword [ebp - 0x4a60], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431ee0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xa1c]
push ecx
lea ecx, [ebp - 0x4a70]
call fcn.004027c0
push 0x1ffe
lea eax, [ebp - 0x2a1a]
xor edx, edx
push ebx
mov byte [ebp - 4], 2
push eax
mov word [ebp - 0x2a1c], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0xffffffffffffffff
xor ecx, ecx
push ebx
lea edx, [ebp - 0x4ae0]
mov word [ebp - 0x4ac4], cx
push edx
lea ecx, [ebp - 0x4ac4]
mov dword [ebp - 0x4ab0], edi
mov dword [ebp - 0x4ab4], ebx
call fcn.00402530
lea eax, [esi + 0x2360]
mov byte [ebp - 4], 3
cmp dword [eax], ebx
je 0x432039
lea edi, [esi + 0x23c0]
call fcn.0043d230
mov esi, dword [eax]
cmp esi, ebx
je 0x432034
push 1
push 0x4adfcc
lea ecx, [ebp - 0x4a70]
call fcn.004026a0
lea ebx, [esi + 0x14]
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431f90
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x4a70]
call fcn.004026a0
push 4
push 0x4b08a8
lea ecx, [ebp - 0x4a70]
call fcn.004026a0
lea edi, [esi + 0x38a4]
push edi
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_swprintf_s]
push str._title:_s__id:_s
lea eax, [ebp - 0x2a1c]
push 0x1000
push eax
call ebx
xor ecx, ecx
push 0x1ffe
push ecx
lea edx, [ebp - 0x4a1a]
push edx
mov word [ebp - 0x4a1c], cx
call sub.MSVCR100.dll_memset
lea eax, [esi + 0x3014]
push eax
lea ecx, [esi + 0x1014]
push ecx
add esi, 0x814
push esi
push str._s:__im:_s__u:_s__category:_s
lea edx, [ebp - 0x4a1c]
push 0x1000
push edx
call ebx
lea eax, [ebp - 0x4a1c]
push eax
push edi
call fcn.00461170
add esp, 0x40
xor ebx, ebx
mov edi, 7
mov eax, dword [ebp - 0x4ae4]
cmp dword [eax + 0x10], ebx
jbe 0x432194
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x432054
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x4a8c]
call fcn.00402480
mov byte [ebp - 4], 4
xor ecx, ecx
lea eax, [ebp - 0x2a1c]
mov dword [ebp - 0x4a24], edi
mov dword [ebp - 0x4a28], ebx
mov word [ebp - 0x4a38], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x432082
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x2a1c]
push edx
lea ecx, [ebp - 0x4a38]
call fcn.004027c0
mov byte [ebp - 4], 5
xor eax, eax
mov word [ebp - 0x4a54], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x4a40], edi
mov dword [ebp - 0x4a44], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4320c6
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x4a54]
call fcn.004027c0
push ebx
lea edx, [ebp - 0x4a8c]
push edx
lea eax, [ebp - 0x4a38]
push eax
lea ecx, [ebp - 0x4ae0]
push ecx
lea edx, [ebp - 0x4a70]
push edx
lea eax, [ebp - 0x4a54]
push eax
mov byte [ebp - 4], 6
call fcn.0045bf80
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 0x18
cmp dword [ebp - 0x4a40], esi
jb 0x432132
mov ecx, dword [ebp - 0x4a54]
push ecx
call edi
add esp, 4
xor edx, edx
cmp dword [ebp - 0x4a24], 8
mov esi, 7
mov dword [ebp - 0x4a40], esi
mov dword [ebp - 0x4a44], ebx
mov word [ebp - 0x4a54], dx
jb 0x432161
mov eax, dword [ebp - 0x4a38]
push eax
call edi
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x4a78], 8
mov dword [ebp - 0x4a24], esi
mov dword [ebp - 0x4a28], ebx
mov word [ebp - 0x4a38], cx
jb 0x4322f4
mov edx, dword [ebp - 0x4a8c]
push edx
call edi
add esp, 4
jmp 0x4322f4
push ebx
xor eax, eax
push 0x4ab248
lea ecx, [ebp - 0x4a8c]
mov dword [ebp - 0x4a78], edi
mov dword [ebp - 0x4a7c], ebx
mov word [ebp - 0x4a8c], ax
call fcn.004027c0
mov byte [ebp - 4], 7
xor ecx, ecx
lea eax, [ebp - 0x2a1c]
mov dword [ebp - 0x4a40], edi
mov dword [ebp - 0x4a44], ebx
mov word [ebp - 0x4a54], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4321e0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x2a1c]
push edx
lea ecx, [ebp - 0x4a54]
call fcn.004027c0
mov byte [ebp - 4], 8
xor eax, eax
mov word [ebp - 0x4a38], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x4a24], edi
mov dword [ebp - 0x4a28], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x432224
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x4a38]
call fcn.004027c0
push ebx
lea edx, [ebp - 0x4a8c]
push edx
lea eax, [ebp - 0x4a54]
push eax
lea ecx, [ebp - 0x4ae0]
push ecx
lea edx, [ebp - 0x4a70]
push edx
lea eax, [ebp - 0x4a38]
push eax
mov byte [ebp - 4], 9
call fcn.0045bf80
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 8
add esp, 0x18
cmp dword [ebp - 0x4a24], esi
jb 0x432295
mov ecx, dword [ebp - 0x4a38]
push ecx
call edi
add esp, 4
xor edx, edx
mov dword [ebp - 0x4a24], 7
mov dword [ebp - 0x4a28], ebx
mov word [ebp - 0x4a38], dx
cmp dword [ebp - 0x4a40], esi
jb 0x4322c2
mov eax, dword [ebp - 0x4a54]
push eax
call edi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x4a40], 7
mov dword [ebp - 0x4a44], ebx
mov word [ebp - 0x4a54], cx
cmp dword [ebp - 0x4a78], esi
jb 0x4322ef
mov edx, dword [ebp - 0x4a8c]
push edx
call edi
add esp, 4
mov esi, 7
cmp dword [ebp - 0x4ab0], 8
jb 0x432309
mov eax, dword [ebp - 0x4ac4]
push eax
call edi
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x4a5c], 8
mov dword [ebp - 0x4ab0], esi
mov dword [ebp - 0x4ab4], ebx
mov word [ebp - 0x4ac4], cx
jb 0x432333
mov edx, dword [ebp - 0x4a70]
push edx
call edi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x4acc], 8
mov dword [ebp - 0x4a5c], esi
mov dword [ebp - 0x4a60], ebx
mov word [ebp - 0x4a70], ax
jb 0x43235d
mov ecx, dword [ebp - 0x4ae0]
push ecx
call edi
add esp, 4
xor edx, edx
cmp dword [ebp - 0x4a94], 8
mov dword [ebp - 0x4acc], esi
mov dword [ebp - 0x4ad0], ebx
mov word [ebp - 0x4ae0], dx
jb 0x432387
mov eax, dword [ebp - 0x4aa8]
push eax
call edi
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret 4