Function at 0x4171e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43854e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7a0
push esi
lea ecx, [esp + 0x24]
call fcn.004249e0
mov dword [esp + 0x24], 0x43d4c8
push 2
mov dword [esp + 0x7b0], 0
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x417235
mov cx, word [esp + 0x7b8]
mov esi, eax
mov word [eax], cx
jmp 0x417237
xor esi, esi
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov byte [esp + 0x7ac], 1
je 0x417266
push 1
push esi
push 2
push 0x10
push 0x2020
mov ecx, eax
call fcn.00424340
jmp 0x417268
xor eax, eax
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x7b0], 0
call fcn.00424de0
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov byte [esp + 0x7ac], 2
je 0x4172ab
push 0
push 0
push pe_nt_image_headers32
push 0x2020
mov ecx, eax
call fcn.004242b0
jmp 0x4172ad
xor eax, eax
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x7b0], 0
call fcn.00424de0
push 0x70
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 4], esi
test esi, esi
mov byte [esp + 0x7ac], 3
je 0x4172ea
mov ecx, esi
call fcn.004249e0
mov dword [esi], 0x43d4c8
jmp 0x4172ec
xor esi, esi
push ebx
push ebp
push edi
push 2
mov byte [esp + 0x7bc], 0
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x41730e
mov word [eax], 1
mov edi, eax
jmp 0x417310
xor edi, edi
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x7b8], 4
je 0x41733c
push 1
push edi
push 2
push 2
push 0x28
mov ecx, eax
call fcn.00424340
jmp 0x41733e
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x7bc], 0
call dword [edx + 8]
push str.MONOCHROME2
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
push eax
mov byte [esp + 0x7bc], 5
call fcn.00417d10
add esp, 4
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x7b8], 0
call sub.MFC42.DLL_CString::CString
push 0x20
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 4
mov dword [esp + 0x10], edx
test edx, edx
mov byte [esp + 0x7b8], 6
je 0x4173b7
push 1
or ecx, 0xffffffff
xor eax, eax
push edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 4
push 0x28
mov ecx, edx
call fcn.00424340
jmp 0x4173b9
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x7bc], 0
call dword [edx + 8]
push 2
call sub.MFC42.DLL_operatornew
mov ebp, dword [esp + 0x7cc]
add esp, 4
test eax, eax
je 0x4173e5
mov word [eax], bp
mov edi, eax
jmp 0x4173e7
xor edi, edi
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x7b8], 7
je 0x417413
push 1
push edi
push 2
push 0x10
push 0x28
mov ecx, eax
call fcn.00424340
jmp 0x417415
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x7bc], 0
call dword [edx + 8]
push 2
call sub.MFC42.DLL_operatornew
mov ebx, dword [esp + 0x7d0]
add esp, 4
test eax, eax
je 0x417441
mov word [eax], bx
mov edi, eax
jmp 0x417443
xor edi, edi
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x7b8], 8
je 0x41746f
push 1
push edi
push 2
push 0x11
push 0x28
mov ecx, eax
call fcn.00424340
jmp 0x417471
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x7bc], 0
call dword [edx + 8]
push 0x449178
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
push eax
mov byte [esp + 0x7bc], 9
call fcn.00417d10
add esp, 4
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x7b8], 0
call sub.MFC42.DLL_CString::CString
push 0x20
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 4
mov dword [esp + 0x10], edx
test edx, edx
mov byte [esp + 0x7b8], 0xa
je 0x4174ea
push 1
or ecx, 0xffffffff
xor eax, eax
push edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x34
push 0x28
mov ecx, edx
call fcn.00424340
jmp 0x4174ec
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x7bc], 0
call dword [edx + 8]
push 2
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x417513
mov word [eax], 8
mov edi, eax
jmp 0x417515
xor edi, edi
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x7b8], 0xb
je 0x417544
push 1
push edi
push 2
push 0x100
push 0x28
mov ecx, eax
call fcn.00424340
jmp 0x417546
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x7bc], 0
call dword [edx + 8]
push 2
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x41756d
mov word [eax], 8
mov edi, eax
jmp 0x41756f
xor edi, edi
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x7b8], 0xc
je 0x41759e
push 1
push edi
push 2
push 0x101
push 0x28
mov ecx, eax
call fcn.00424340
jmp 0x4175a0
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x7bc], 0
call dword [edx + 8]
push 2
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x4175c7
mov word [eax], 7
mov edi, eax
jmp 0x4175c9
xor edi, edi
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x7b8], 0xd
je 0x4175f8
push 1
push edi
push 2
push 0x102
push 0x28
mov ecx, eax
call fcn.00424340
jmp 0x4175fa
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x7bc], 0
call dword [edx + 8]
push 2
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x417621
mov word [eax], 0
mov edi, eax
jmp 0x417623
xor edi, edi
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x7b8], 0xe
je 0x417652
push 1
push edi
push 2
push 0x103
push 0x28
mov ecx, eax
call fcn.00424340
jmp 0x417654
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x7bc], 0
call dword [edx + 8]
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x7b8], 0xf
je 0x4176a8
and ebp, 0xffff
and ebx, 0xffff
mov ecx, dword [esp + 0x7d0]
imul ebp, ebx
push 1
push ecx
push ebp
push 0x10
push 0x7fe0
mov ecx, eax
call fcn.00424340
jmp 0x4176aa
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x7bc], 0
call dword [edx + 8]
push esi
lea ecx, [esp + 0x34]
call fcn.00424cf0
mov ebp, dword [esp + 0x7dc]
test ebp, ebp
jne 0x4177c0
mov eax, dword [esp + 0x7d4]
push eax
call fcn.00431700
mov esi, eax
add esp, 4
test esi, esi
je 0x41770c
push ebp
push ebp
push 0x159
lea ecx, [esp + 0x3c]
push 0x501
push ecx
call fcn.00431130
add esp, 0x14
lea ecx, [esp + 0x30]
push esi
call fcn.00424cf0
mov ebp, dword [esp + 0x7d8]
xor edx, edx
cmp ebp, edx
je 0x4178f6
mov eax, dword [ebp + 0xc]
cmp eax, edx
je 0x4178f6
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edx
jle 0x4178f6
mov eax, dword [ebp + 8]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4177ab
lea esi, [eax + 0x290]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esi + 0x16d]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4177ab
push 0x584
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov ecx, 0x161
mov edi, ebx
xor edx, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x44af08]
div ecx
mov esi, dword [esp + 0x18]
push ebx
push 0x584
lea edx, [esp + 0x3c]
lea ecx, [esi + 0x15d]
push ecx
push 0x501
push edx
mov dword [ebx + 0x418], eax
call fcn.00431130
mov edx, dword [esp + 0x34]
add esp, 0x18
inc esi
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0xc]
inc edx
cmp edx, eax
mov dword [esp + 0x1c], edx
jl 0x417736
jmp 0x4178f6
push 0
push 0
push 0x159
lea eax, [esp + 0x3c]
push 0x501
push eax
call fcn.00431130
mov eax, dword [ebp + 8]
add esp, 0x14
xor ebx, ebx
test eax, eax
jle 0x41782a
mov ecx, dword [ebp + 4]
xor esi, esi
mov edi, dword [ecx + ebx*4]
mov eax, dword [edi + 0xc]
test eax, eax
jle 0x417822
mov edx, dword [edi + 8]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x41781a
mov eax, dword [eax + 0x8d4]
push eax
call fcn.00431700
add esp, 4
test eax, eax
je 0x41781a
push eax
lea ecx, [esp + 0x34]
call fcn.00424cf0
mov eax, dword [edi + 0xc]
inc esi
cmp esi, eax
jl 0x4177f3
mov eax, dword [ebp + 8]
inc ebx
cmp ebx, eax
jl 0x4177e4
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
jle 0x4178f6
mov ecx, dword [ebp + 4]
xor edx, edx
mov dword [esp + 0x14], edx
mov ebx, dword [ecx + eax*4]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jle 0x4178e6
mov eax, dword [ebx + 8]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4178d2
lea esi, [eax + 0x290]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esi + 0x16d]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4178d2
push 0x584
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, 0x161
mov edi, ebp
xor edx, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xc]
mov eax, dword [0x44af08]
div ecx
mov esi, dword [esp + 0x20]
push ebp
push 0x584
lea edx, [esp + 0x3c]
lea ecx, [esi + 0x15d]
push ecx
push 0x501
push edx
mov dword [ebp + 0x418], eax
call fcn.00431130
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x7f4]
add esp, 0x18
inc esi
mov dword [esp + 0x1c], esi
mov eax, dword [ebx + 0xc]
inc edx
cmp edx, eax
mov dword [esp + 0x14], edx
jl 0x417856
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x41783f
mov eax, dword [0x44af04]
test eax, eax
je 0x417adc
mov ebp, dword [esp + 0x7cc]
mov ebx, dword [esp + 0x7c8]
and ebp, 0xffff
and ebx, 0xffff
mov esi, ebp
imul esi, ebx
lea eax, [esi + 0x428]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor edi, edi
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x417adc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, 0x64
mov dword [eax + 4], ebp
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 8], ebx
mov dword [eax], 0x28
mov word [eax + 0xc], 1
mov word [eax + 0xe], 8
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], esi
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], edi
lea edx, [eax + 0x28]
xor ecx, ecx
mov dword [edx], ecx
add ecx, 0x10101
add edx, 4
cmp ecx, 0x1010100
jl 0x41797a
push eax
call fcn.00430900
mov ecx, esi
mov esi, dword [esp + 0x7d0]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
mov dword [esp + 0x1c], eax
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatornew
mov ecx, ebx
add esp, 4
shr ecx, 1
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x417a2c
mov edx, ebp
mov eax, dword [esp + 0x18]
neg edx
mov dword [esp + 0x10], edx
lea edx, [ebx - 1]
imul edx, ebp
add edx, eax
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov ebx, ecx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
mov esi, eax
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov ecx, ebp
mov edi, eax
add eax, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add edx, edi
dec ecx
mov dword [esp + 0x18], ecx
jne 0x4179dd
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [0x449078]
mov byte [esp + 0x7b8], 0x10
mov ecx, eax
inc eax
push ecx
lea ecx, [esp + 0x18]
push str.c:_test_d.bmp
push ecx
mov dword [0x449078], eax
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::CFile
mov edx, dword [esp + 0x14]
push 0
push 0x9001
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7c4], 0x11
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x417ab3
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00430a60
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x7b8], 0x10
call fcn.0042cb74
lea ecx, [esp + 0x14]
mov byte [esp + 0x7b8], 0
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x7c0]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6ac]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
lea ecx, [esp + 0x6ac]
push ecx
push 0
push 0x449164
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0xa0]
call fcn.00424050
lea edx, [esp + 0x30]
lea eax, [esp + 0x6ac]
push edx
push eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x7c0], 0x12
call fcn.00421330
pop edi
pop ebp
test eax, eax
pop ebx
jne 0x417c14
mov dword [esp + 0x94], 0x43c4f8
mov dword [esp + 0xf4], 0x43c4f4
mov dword [esp + 0x2d4], 0x43c4f0
mov dword [esp + 0x4b4], 0x43c4ec
mov dword [esp + 0x4c4], 0x43c4e8
mov dword [esp + 0x4d4], 0x43c4e4
mov dword [esp + 0x4e4], 0x43c4e0
mov dword [esp + 0x4f4], 0x43c4dc
mov ecx, dword [esp + 0x698]
mov byte [esp + 0x7ac], 0x13
test ecx, ecx
je 0x417bc4
call fcn.00420ad0
mov ecx, dword [esp + 0x698]
test ecx, ecx
je 0x417bc4
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x69c]
test ecx, ecx
je 0x417be5
call fcn.00420ad0
mov ecx, dword [esp + 0x69c]
test ecx, ecx
je 0x417be5
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esp + 0x94]
mov byte [esp + 0x7ac], 0
call fcn.0041ea90
lea ecx, [esp + 0x24]
mov dword [esp + 0x7ac], 0xffffffff
call fcn.00424a60
xor eax, eax
jmp 0x417cf2
lea ecx, [esp + 0x6a0]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov dword [esp + 0x94], 0x43c4f8
mov dword [esp + 0xf4], 0x43c4f4
mov dword [esp + 0x2d4], 0x43c4f0
mov dword [esp + 0x4b4], 0x43c4ec
mov dword [esp + 0x4c4], 0x43c4e8
mov dword [esp + 0x4d4], 0x43c4e4
mov dword [esp + 0x4e4], 0x43c4e0
mov dword [esp + 0x4f4], 0x43c4dc
mov ecx, dword [esp + 0x698]
mov byte [esp + 0x7ac], 0x14
test ecx, ecx
je 0x417ca4
call fcn.00420ad0
mov ecx, dword [esp + 0x698]
test ecx, ecx
je 0x417ca4
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x69c]
test ecx, ecx
je 0x417cc5
call fcn.00420ad0
mov ecx, dword [esp + 0x69c]
test ecx, ecx
je 0x417cc5
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esp + 0x94]
mov byte [esp + 0x7ac], 0
call fcn.0041ea90
lea ecx, [esp + 0x24]
mov dword [esp + 0x7ac], 0xffffffff
call fcn.00424a60
mov eax, 1
mov ecx, dword [esp + 0x7a4]
pop esi
mov dword fs:[0], ecx
add esp, 0x7ac
ret 0x20