Function at 0x43ce50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x30c
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x34], 1
call fcn.00433170
mov eax, dword [0x477450]
push ebp
push ebp
push 0x184
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.004143b0
xor ecx, ecx
mov edx, dword [0x477404]
mov dword [esp + 0x4c], ecx
xor eax, eax
mov dword [esp + 0x50], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [0x476e04]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], 0x14
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], eax
call ebx
mov edx, dword [0x476e00]
mov esi, eax
push edx
call ebx
mov edi, eax
mov eax, dword [0x476e08]
cmp eax, ebp
je 0x43cefb
lea eax, [esp + 0x94]
push 0x46106c
push eax
jmp 0x43cf0c
xor ecx, ecx
lea edx, [esp + 0x94]
mov cx, word [esi + 4]
add ecx, esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x477368]
push edi
cmp eax, ebp
push ebp
je 0x43cf29
xor eax, eax
mov ax, word [esi + 2]
add eax, esi
push eax
push ebp
jmp 0x43cf37
xor ecx, ecx
mov cx, word [esi + 2]
add ecx, esi
push ecx
push 0x461060
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edx, dword [0x476e04]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edx
mov esi, eax
call ebp
mov eax, dword [0x476e00]
push eax
call ebp
push 0x58
mov dword [esp + 0x20], esi
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call esi
push 0x5a
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
push ecx
call esi
push 8
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
push edx
call esi
push 0xa
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], 0
push edx
call fcn.0043f160
test eax, eax
mov dword [esp + 0x38], eax
je 0x43d833
mov eax, dword [0x477358]
push 0
push eax
call fcn.0041cdf0
push 1
push 0x45a5b8
push 0x106a
call fcn.00440930
mov ecx, dword [0x476e04]
mov byte [esp + 0x114], 0
push ecx
mov dword [esp + 0x48], eax
call ebx
mov ecx, dword [0x476e08]
test ecx, ecx
jne 0x43d068
xor edx, edx
push 0x46106c
mov dx, word [eax + 4]
add edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x43d068
lea eax, [esp + 0x218]
mov ecx, 5
lea esi, [esp + 0x4c]
lea edi, [esp + 0x80]
push eax
push 0x104
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x60], 0x46105c
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x114]
lea edx, [esp + 0x218]
push ecx
push 0
push 0x461058
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x114]
mov dword [esp + 0x88], eax
jmp 0x43d092
mov ecx, 5
lea esi, [esp + 0x4c]
lea edi, [esp + 0x80]
mov dword [esp + 0x54], 0x46106c
mov byte [esp + 0x114], 0
mov dword [esp + 0x40], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x476e04]
push ecx
call ebp
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
test byte [esp + 0x44], 1
je 0x43d2ff
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x43d303
push 1
push 0
push 0
lea edx, [esp + 0x70]
push 0
push edx
call ebx
test eax, eax
je 0x43d104
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x64]
push eax
call esi
lea ecx, [esp + 0x64]
push ecx
call edi
push 1
push 0
push 0
lea edx, [esp + 0x70]
push 0
push edx
call ebx
test eax, eax
jne 0x43d0e3
call fcn.0041cf10
test eax, eax
je 0x43d128
push 0x24
push 0x53
push 0
call fcn.00448b60
cmp eax, 6
je 0x43d806
push 0
call fcn.0041cf40
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
sub edx, eax
push ecx
push edx
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.0043e900
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43d2ff
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x43d2ff
push eax
lea ecx, [esp + 0x20]
push ebp
push ecx
call fcn.0043f870
test eax, eax
je 0x43d806
mov edx, dword [0x476e04]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push edx
call edi
mov esi, eax
mov eax, dword [0x476e00]
push eax
call edi
mov edi, eax
mov eax, dword [0x476e08]
test eax, eax
je 0x43d1a7
lea ecx, [esp + 0x94]
push 0x46106c
push ecx
jmp 0x43d1b8
xor edx, edx
lea eax, [esp + 0x94]
mov dx, word [esi + 4]
add edx, esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x477368]
push edi
test eax, eax
push 0
je 0x43d1d7
xor ecx, ecx
mov cx, word [esi + 2]
add ecx, esi
push ecx
push 0
jmp 0x43d1e5
xor edx, edx
mov dx, word [esi + 2]
add edx, esi
push edx
push 0x461060
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, eax
mov eax, dword [0x476e04]
push eax
call edi
mov ecx, dword [0x476e00]
push ecx
call edi
push 0x43f650
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov edi, dword [sym.imp.GDI32.dll_StartDocA]
lea edx, [esp + 0x4c]
mov eax, dword [esp + 0x1c]
push edx
push eax
xor esi, esi
call edi
cmp eax, 0xffffffff
jne 0x43d247
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x80]
push ecx
push edx
call edi
cmp eax, 0xffffffff
je 0x43d2c5
jmp 0x43d24c
mov esi, 1
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
push eax
push ebp
push ecx
call fcn.0043e440
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.GDI32.dll_EndDoc]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x43d29b
test esi, esi
jne 0x43d29b
lea ecx, [esp + 0x114]
push ecx
call fcn.0043f400
test eax, eax
je 0x43d806
mov edx, dword [esp + 0x3c]
push edx
push ebp
call fcn.0043fa50
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
add ecx, eax
lea ebp, [ebp + eax*4]
mov eax, dword [esp + 0x14]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jge 0x43d303
jmp 0x43d0c4
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, dword [0x4773fc]
lea eax, [esp + 0x94]
push 0x80
push eax
push 0x54
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov edx, dword [0x477404]
push 0x30
lea eax, [esp + 0x98]
push edx
push eax
jmp 0x43d7f9
mov eax, dword [esp + 0x14]
test byte [esp + 0x44], 4
je 0x43d587
xor edi, edi
test eax, eax
jle 0x43d587
mov ecx, dword [esp + 0x38]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [esp + 0x10], ecx
push 1
push 0
push 0
lea edx, [esp + 0x70]
push 0
push edx
call ebx
test eax, eax
je 0x43d360
lea eax, [esp + 0x64]
push eax
call esi
lea ecx, [esp + 0x64]
push ecx
call ebp
push 1
push 0
push 0
lea edx, [esp + 0x70]
push 0
push edx
call ebx
test eax, eax
jne 0x43d33f
call fcn.0041cf10
test eax, eax
je 0x43d384
push 0x24
push 0x53
push 0
call fcn.00448b60
cmp eax, 6
je 0x43d806
push 0
call fcn.0041cf40
mov eax, dword [esp + 0x14]
lea ebx, [edi + 0x50]
cmp eax, ebx
mov dword [esp + 0x18], ebx
jge 0x43d395
mov ebx, eax
mov eax, ebx
lea ecx, [esp + 0x1c]
sub eax, edi
mov dword [esp + 0x48], eax
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call fcn.0043f870
test eax, eax
je 0x43d806
mov edx, dword [0x476e04]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
push edx
call ebp
mov esi, eax
mov eax, dword [0x476e00]
push eax
call ebp
mov ebp, eax
mov eax, dword [0x476e08]
test eax, eax
je 0x43d3e8
lea ecx, [esp + 0x94]
push 0x46106c
push ecx
jmp 0x43d3f9
xor edx, edx
lea eax, [esp + 0x94]
mov dx, word [esi + 4]
add edx, esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x477368]
push ebp
test eax, eax
push 0
je 0x43d418
xor ecx, ecx
mov cx, word [esi + 2]
add ecx, esi
push ecx
push 0
jmp 0x43d426
xor edx, edx
mov dx, word [esi + 2]
add edx, esi
push edx
push 0x461060
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, eax
mov eax, dword [0x476e04]
push eax
call ebp
mov ecx, dword [0x476e00]
push ecx
call ebp
push 0x43f650
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov esi, dword [sym.imp.GDI32.dll_StartDocA]
lea edx, [esp + 0x4c]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x38], 0
call esi
cmp eax, 0xffffffff
jne 0x43d48e
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x80]
push ecx
push edx
call esi
cmp eax, 0xffffffff
je 0x43d54e
jmp 0x43d496
mov dword [esp + 0x30], 1
cmp edi, ebx
jge 0x43d4bf
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0043d840
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x34], ebp
je 0x43d4c3
inc edi
add esi, 4
cmp edi, ebx
jl 0x43d49e
jmp 0x43d4c3
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.GDI32.dll_EndDoc]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0043fa50
test ebp, ebp
je 0x43d806
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x43d51d
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x43d51d
lea eax, [esp + 0x114]
push eax
call fcn.0043f400
test eax, eax
je 0x43d806
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add edx, 0x140
cmp edi, eax
mov dword [esp + 0x10], edx
jge 0x43d587
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x43d32c
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
mov edx, dword [0x4773fc]
lea ecx, [esp + 0x94]
push 0x80
push ecx
push 0x54
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [0x477404]
push 0x30
lea ecx, [esp + 0x98]
push eax
push ecx
jmp 0x43d7f9
test byte [esp + 0x44], 2
je 0x43d806
xor edi, edi
test eax, eax
jle 0x43d806
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x70]
push 0
push eax
call esi
test eax, eax
je 0x43d5ea
lea ecx, [esp + 0x64]
push ecx
call ebx
lea edx, [esp + 0x64]
push edx
call ebp
push 1
push 0
push 0
lea eax, [esp + 0x70]
push 0
push eax
call esi
test eax, eax
jne 0x43d5c9
call fcn.0041cf10
test eax, eax
je 0x43d60e
push 0x24
push 0x53
push 0
call fcn.00448b60
cmp eax, 6
je 0x43d806
push 0
call fcn.0041cf40
mov eax, dword [esp + 0x14]
lea ecx, [edi + 0x50]
cmp eax, ecx
mov dword [esp + 0x18], ecx
mov ebx, eax
jl 0x43d621
mov ebx, ecx
mov ecx, dword [esp + 0x10]
mov eax, ebx
sub eax, edi
lea edx, [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x54], eax
call fcn.0043f870
test eax, eax
je 0x43d806
mov eax, dword [0x476e04]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call ebp
mov ecx, dword [0x476e00]
mov esi, eax
push ecx
call ebp
mov ebp, eax
mov eax, dword [0x476e08]
test eax, eax
je 0x43d674
lea edx, [esp + 0x94]
push 0x46106c
push edx
jmp 0x43d685
xor eax, eax
lea ecx, [esp + 0x94]
mov ax, word [esi + 4]
add eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x477368]
push ebp
test eax, eax
push 0
je 0x43d6a4
xor edx, edx
mov dx, word [esi + 2]
add edx, esi
push edx
push 0
jmp 0x43d6b2
xor eax, eax
mov ax, word [esi + 2]
add eax, esi
push eax
push 0x461060
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ecx, dword [0x476e04]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ecx
mov esi, eax
call ebp
mov edx, dword [0x476e00]
push edx
call ebp
push 0x43f650
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov esi, dword [sym.imp.GDI32.dll_StartDocA]
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x38], 0
call esi
cmp eax, 0xffffffff
jne 0x43d71b
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x80]
push edx
push eax
call esi
cmp eax, 0xffffffff
je 0x43d7c5
jmp 0x43d723
mov dword [esp + 0x30], 1
cmp edi, ebx
jge 0x43d74c
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0043ea20
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x34], ebp
je 0x43d750
inc edi
add esi, 4
cmp edi, ebx
jl 0x43d72b
jmp 0x43d750
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0043fa50
test ebp, ebp
je 0x43d806
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x43d7a6
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x43d7a6
lea ecx, [esp + 0x114]
push ecx
call fcn.0043f400
test eax, eax
je 0x43d806
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add ecx, 0x140
cmp edi, eax
mov dword [esp + 0x10], ecx
jge 0x43d806
jmp 0x43d5a4
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [0x4773fc]
lea edx, [esp + 0x94]
push 0x80
push edx
push 0x54
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [0x477404]
push 0x30
lea edx, [esp + 0x98]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.0041cd80
mov eax, dword [esp + 0x38]
push eax
call fcn.0044c186
mov al, byte [esp + 0x118]
add esp, 4
test al, al
je 0x43d833
lea ecx, [esp + 0x114]
push ecx
call fcn.0044c687
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret 4