Function at 0x4078d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5f325b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x6656b0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
push eax
call fcn.004b6200
xor ebx, ebx
mov dword [esp + 0x98], ebx
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov byte [esp + 0x98], 1
push str._ProgramFiles_GeniCAM
push str._sGenian.dat
lea ecx, [esp + 0x20]
call fcn.004bc870
add esp, 8
lea edx, [esp + 0x18]
push edx
push ecx
call fcn.004b7590
add esp, 4
mov ecx, eax
call fcn.004b8f60
mov edi, dword [esp + 0x1c]
mov ebp, 8
cmp dword [esp + 0x30], ebp
jae 0x407971
lea edi, [esp + 0x1c]
call fcn.004bb940
test al, al
jne 0x407a06
push 0x444
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x1f
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.CGnWork::CheckInstallPermission
mov byte [ecx + 4], bl
call fcn.0040e090
mov byte [esp + 0xb8], 2
mov byte [esp + 0xb8], 1
mov esi, 0x66f120
call fcn.0040df10
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x4079cd
lea eax, [esp + 0x1c]
push eax
push 0x621984
push 0x66f120
call fcn.0040fc70
add esp, 0xc
mov byte [esp + 0x98], bl
cmp dword [esp + 0x30], ebp
jb 0x4079fa
mov eax, dword [esp + 0x1c]
push eax
call fcn.004c4802
add esp, 4
xor ecx, ecx
mov word [esp + 0x1c], cx
jmp 0x407d24
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x407a14
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407aab
push 0x449
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x1f
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.CGnWork::CheckInstallPermission
mov byte [ecx + 4], bl
call fcn.0040e090
mov byte [esp + 0xb8], 3
mov byte [esp + 0xb8], 1
mov esi, 0x66f120
call fcn.0040df10
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x407a72
lea eax, [esp + 0x1c]
push eax
push 0x6219b8
push 0x66f120
call fcn.0040fc70
add esp, 0xc
mov byte [esp + 0x98], bl
cmp dword [esp + 0x30], ebp
jb 0x407a9f
mov edx, dword [esp + 0x1c]
push edx
call fcn.004c4802
add esp, 4
xor eax, eax
mov word [esp + 0x1c], ax
jmp 0x407d24
push 1
push str.SOFTWAREGeniCAM
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x40]
call fcn.004b6340
cmp al, 1
jne 0x407cbe
mov edx, str.Genian.dat
mov esi, edi
call fcn.004b6be0
test al, al
jne 0x407b3a
push 0x451
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.CGnWork::CheckInstallPermission
call fcn.0040e170
mov byte [esp + 0xb8], 4
mov byte [esp + 0xb8], 1
mov esi, 0x66f120
call fcn.0040df10
push 0x621a04
push 0x66f120
call fcn.0040fc70
add esp, 8
lea ecx, [esp + 0x34]
call fcn.004b6550
mov byte [esp + 0x98], bl
lea esi, [esp + 0x18]
call fcn.0040f810
jmp 0x407d30
mov ecx, str.Genian.dat
lea esi, [esp + 0x34]
call fcn.004b6c80
test al, al
jne 0x407b85
push 0x457
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.CGnWork::CheckInstallPermission
call fcn.0040e170
mov byte [esp + 0xb8], 5
mov byte [esp + 0xb8], 1
mov esi, 0x66f120
call fcn.0040df10
push 0x621a2c
jmp 0x407b0f
lea ecx, [esp + 0x34]
call fcn.004b6550
push 1
push str.SystemCurrentControlSetServicesGnCamService
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x40]
call fcn.004b6340
cmp al, 1
jne 0x407c67
mov edx, str.Genian.dat
mov esi, edi
call fcn.004b6be0
test al, al
jne 0x407be0
push 0x467
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.CGnWork::CheckInstallPermission
call fcn.0040e170
mov byte [esp + 0xb8], 7
jmp 0x407af8
mov ecx, str.Genian.dat
lea esi, [esp + 0x34]
call fcn.004b6c80
test al, al
jne 0x407c2e
push 0x46d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.CGnWork::CheckInstallPermission
call fcn.0040e170
mov byte [esp + 0xb8], 8
mov byte [esp + 0xb8], 1
mov esi, 0x66f120
call fcn.0040df10
push 0x621a2c
jmp 0x407b0f
mov ecx, str.Genian.dat
lea esi, [esp + 0x34]
call fcn.004b6c80
mov byte [esp + 0x98], bl
lea esi, [esp + 0x18]
call fcn.0040f810
mov dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004b62b0
mov al, 1
jmp 0x407d46
push 0x475
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.CGnWork::CheckInstallPermission
call fcn.0040e170
mov byte [esp + 0xb8], 9
mov byte [esp + 0xb8], 1
mov esi, 0x66f120
call fcn.0040df10
push str.SystemCurrentControlSetServicesGnCamService
push 0x621a54
push esi
call fcn.0040fc70
add esp, 0xc
mov byte [esp + 0x98], bl
lea esi, [esp + 0x18]
call fcn.0040f810
jmp 0x407d30
push 0x45f
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.CGnWork::CheckInstallPermission
call fcn.0040e170
mov byte [esp + 0xb8], 6
mov byte [esp + 0xb8], 1
mov esi, 0x66f120
call fcn.0040df10
push str.SOFTWAREGeniCAM
push 0x621a54
push esi
call fcn.0040fc70
add esp, 0xc
mov byte [esp + 0x98], bl
cmp dword [esp + 0x30], ebp
jb 0x407d1d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004c4802
add esp, 4
xor edx, edx
mov word [esp + 0x1c], dx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004b62b0
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005b7e8e
add esp, 0x88
ret