Function at 0x431380
Capabilities:
Check for peb ntglobalflag flag
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4743cc
push eax
mov eax, 0x1038
mov dword fs:[0], esp
call fcn.00420c90
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1058]
mov esi, ecx
lea eax, [edi + 0x20]
lea ecx, [esi + 0x20]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [edi + 0x24]
push ecx
lea ecx, [esi + 0x24]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [edi + 0x64]
mov dword [esi + 0x64], edx
mov ax, word [edi + 0x28]
mov word [esi + 0x28], ax
mov cx, word [edi + 0x2a]
mov word [esi + 0x2a], cx
mov dx, word [edi + 0x2c]
mov word [esi + 0x2c], dx
mov ax, word [edi + 0x2e]
mov word [esi + 0x2e], ax
mov cx, word [edi + 0x30]
mov word [esi + 0x30], cx
mov dx, word [edi + 0x32]
lea eax, [edi + 0x5c]
lea ecx, [esi + 0x5c]
push eax
mov word [esi + 0x32], dx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [edi + 0x34]
lea ebx, [esi + 0x34]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
mov dx, word [edi + 0x38]
mov word [esi + 0x38], dx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi + 0x54]
mov dword [esi + 0x54], ecx
mov edx, dword [edi + 0x58]
lea ecx, [edi + 0x60]
mov dword [esi + 0x58], edx
mov eax, dword [edi + 0x48]
push ecx
lea ecx, [esi + 0x60]
mov dword [esi + 0x48], eax
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [edi + 0x50]
lea eax, [edi + 0x70]
push eax
lea ecx, [esi + 0x70]
mov dword [esi + 0x50], edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [edi + 0x44]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
mov dword [esi + 0x44], ecx
mov eax, dword [edi + 0x68]
push 0x4d6560
push eax
call ebp
add esp, 8
test eax, eax
je 0x431556
mov eax, dword [esi + 0x68]
push 0x4d6560
push eax
call ebp
add esp, 8
test eax, eax
jne 0x431556
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push eax
call fcn.00431aa0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4d6560
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x20]
push eax
call fcn.00433df0
add esp, 8
mov ecx, eax
mov dword [esp + 0x105c], 0
call fcn.00431aa0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1050], 0xffffffff
sete byte [esp + 0x17]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x17]
test al, al
je 0x431549
lea ecx, [esp + 0x48]
push ecx
push 0
push 0x4d6560
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4d6560
call sub.MFC42.DLL_CString::CString_4
lea edx, [esp + 0x20]
push edx
call fcn.00433df0
add esp, 8
mov ecx, eax
mov dword [esp + 0x105c], 1
call fcn.00431aa0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1050], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x48]
lea ecx, [esi + 0x68]
push eax
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0x68]
mov ecx, dword [edi + 0x68]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
je 0x431577
mov eax, dword [esi + 0x68]
mov ecx, dword [edi + 0x68]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [edi + 0x6c]
push 0x4d6560
push eax
call ebp
add esp, 8
test eax, eax
je 0x431669
mov eax, dword [esi + 0x6c]
push 0x4d6560
push eax
call ebp
add esp, 8
test eax, eax
jne 0x431669
lea ecx, [esp + 0x48]
push ecx
push eax
mov ecx, ebx
call fcn.00431aa0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4d6560
call sub.MFC42.DLL_CString::CString_4
lea edx, [esp + 0x20]
push edx
call fcn.00433df0
add esp, 8
mov ecx, eax
mov dword [esp + 0x105c], 2
call fcn.00431aa0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1050], 0xffffffff
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x43165c
lea eax, [esp + 0x48]
push eax
push 0
push 0x4d6560
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4d6560
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x20]
push ecx
call fcn.00433df0
add esp, 8
mov ecx, eax
mov dword [esp + 0x105c], 3
call fcn.00431aa0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1050], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x48]
lea ecx, [esi + 0x6c]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0x6c]
mov ecx, dword [edi + 0x6c]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
je 0x43168a
mov eax, dword [esi + 0x6c]
mov ecx, dword [edi + 0x6c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, dword [esi + 0x10]
test ebx, ebx
jle 0x4316cb
lea ebp, [esi + 4]
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.004342b0
lea ecx, [esp + 0x44]
mov dword [esp + 0x1050], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov dword [esp + 0x1050], 0xffffffff
call sub.MFC42.DLL_CString::CString
dec ebx
jne 0x431694
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
test eax, eax
mov dword [esp + 0x1c], ecx
jle 0x431873
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
test eax, eax
jne 0x431718
mov edx, dword [esi + 0x1c]
push 0x28
lea eax, [esi + 0x18]
push edx
push eax
call sub.MFC42.DLL_CPlex::Create
mov ecx, dword [esi + 0x1c]
lea edx, [ecx + ecx*4]
dec ecx
test ecx, ecx
lea eax, [eax + edx*8 - 0x24]
jl 0x431718
inc ecx
mov edx, dword [esi + 0x14]
mov dword [eax], edx
mov dword [esi + 0x14], eax
sub eax, 0x28
dec ecx
jne 0x43170a
mov ebp, dword [esi + 0x14]
mov ecx, 8
mov dword [esp + 0x20], ebp
mov eax, dword [ebp]
add ebp, 8
mov dword [esi + 0x14], eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0
mov eax, dword [esi + 0x10]
inc eax
mov ebx, ebp
mov dword [esi + 0x10], eax
xor eax, eax
mov edi, ebx
mov dword [esp + 0x18], ebx
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0x24], ebx
test ebx, ebx
mov dword [esp + 0x1050], 5
je 0x431785
lea ecx, [ebx + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebx + 0x1c]
mov byte [esp + 0x1050], 6
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0x51
and al, 0xfc
mov dword [ebx + 0x14], eax
add ebx, 0x20
mov ecx, edi
dec edi
mov dword [esp + 0x1050], 0xffffffff
test ecx, ecx
mov dword [esp + 0x18], ebx
jne 0x43174c
mov eax, dword [esp + 0x1c]
lea ecx, [ebp + 4]
mov edi, ecx
mov edx, dword [eax + 8]
add eax, 0xc
mov dword [ebp], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, eax
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov ebx, dword [edx + 8]
mov dword [edi + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
mov edx, eax
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov edx, dword [edx + 8]
mov dword [edi + 8], edx
mov eax, dword [eax]
mov edi, dword [esp + 0x1c]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [edi + 0x1c]
lea edx, [edi + 0x20]
shl eax, 0x1f
sar eax, 0x1f
xor eax, ecx
push edx
and eax, 1
xor eax, ecx
mov dword [ebp + 0x14], eax
mov ecx, dword [edi + 0x1c]
shl ecx, 0x1e
sar ecx, 0x1e
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [ebp + 0x14], ecx
lea ecx, [ebp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea eax, [edi + 0x24]
lea ecx, [ebp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x431858
mov dword [eax], ecx
jmp 0x43185b
mov dword [esi + 8], ecx
mov eax, dword [esp + 0x10]
mov dword [esi + 0xc], ecx
mov ecx, dword [edi]
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
jne 0x4316e1
mov ecx, dword [esp + 0x1048]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1044
ret 4