Function at 0x10003970
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100272b6
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x100319f8]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov eax, dword [0x100319f8]
xor eax, esp
push eax
lea eax, [esp + 0x648]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
push 0x1002b591
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], eax
call fcn.10004920
mov dword [esp + 0x650], 0
call fcn.10004fd8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x100039ef
push 0x80004005
call fcn.10004500
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x104
lea ecx, [esp + 0x130]
push ebx
push ecx
mov byte [esp + 0x65c], 1
call fcn.100115f8
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
lea eax, [esp + 0x130]
push eax
mov ecx, edi
call sym.DatAccess.dll_public:_int___thiscall_CDatAccess::WriteParamFile_char_const___char_const__
mov ebx, eax
test ebx, ebx
je 0x10003a8d
lea eax, [esi - 0x10]
mov byte [esp + 0x650], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003a5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x650], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003a86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x10003e19
push 0x104
lea ecx, [esp + 0x28]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x100
lea edx, [esp + 0x540]
push edx
push 0x100
lea eax, [esp + 0x448]
push eax
push 0x100
lea ecx, [esp + 0x248]
push ecx
push 3
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.1001126b
push 0x1002b4b4
push str.DatAccess
lea ecx, [esp + 0x158]
push ecx
push 0x1002b591
lea edx, [esp + 0x368]
push 0x104
push edx
call fcn.100114c3
push 0x1002b4c4
push str.DatAccess
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x70]
push 0x104
push edx
call fcn.100114c3
add esp, 0x54
push 0
lea eax, [esp + 0x338]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call sym.DatAccess.dll_private:_int___thiscall_CDatAccess::DllCopy_WithExpand_char_const___char_const___int_
test eax, eax
jne 0x10003c56
push 0x1002b4b4
push str.DatAccess
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push 0x104
push ecx
call fcn.100114c3
lea eax, [esp + 0x3c]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10003b80
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.10004830
lea eax, [esp + 0x12c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10003ba4
sub eax, edx
push eax
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x1c]
call fcn.10004830
push 1
push 0x1002b4a8
lea ecx, [esp + 0x1c]
call fcn.10004480
push 0xd
push str.DatAccess.dll
lea ecx, [esp + 0x1c]
call fcn.10004480
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10003c56
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esi - 0x10]
mov byte [esp + 0x650], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10003c21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x650], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003c4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x10003e19
mov ebx, dword [esp + 0x20]
push 0x1002b4d8
push ebx
lea ecx, [esp + 0x134]
push ecx
push 0x1002b591
lea edx, [esp + 0x344]
push 0x104
push edx
call fcn.100114c3
push 0x1002b4dc
push str.DoAsAdmin
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
push 0x104
push edx
call fcn.100114c3
add esp, 0x30
push 0
lea eax, [esp + 0x338]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call sym.DatAccess.dll_private:_int___thiscall_CDatAccess::DllCopy_WithExpand_char_const___char_const___int_
test eax, eax
jne 0x10003dc8
push 0x1002b4d8
push str.DoAsAdmin
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push 0x104
push ecx
call fcn.100114c3
lea eax, [esp + 0x3c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10003cf6
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.10004830
lea eax, [esp + 0x12c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10003d20
sub eax, edx
push eax
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x1c]
call fcn.10004830
push 1
push 0x1002b4a8
lea ecx, [esp + 0x1c]
call fcn.10004480
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10003d52
sub eax, edx
je 0x10003d85
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10003d64
sub eax, edx
cmp eax, 0xffffffff
je 0x10003d85
push ebx
lea ecx, [esp + 0x18]
call fcn.10004380
push str..exe
jmp 0x10003d8a
push str.DoAsAdmin.exe
lea ecx, [esp + 0x18]
call fcn.10004380
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10003dc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
call fcn.10004c00
lea ecx, [esp + 0x18]
call fcn.10004c00
mov eax, 5
jmp 0x10003e19
lea eax, [esi - 0x10]
mov byte [esp + 0x650], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10003dec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x650], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003e17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x648]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.10010fec
mov esp, ebp
pop ebp
ret 8