Function at 0x407340
Capabilities:
Delete file
Move file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4b460b
mov eax, dword fs:[0]
push eax
sub esp, 0x6d4
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x6d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x6e8]
mov dword fs:[0], eax
push 0x206
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x4e2]
xor eax, eax
push edi
push ecx
mov word [esp + 0x4e8], ax
call fcn.00476c30
add esp, 0xc
call fcn.0046cf90
mov ecx, eax
call fcn.0046bb80
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x4e0]
push 0x104
push eax
call fcn.0046cf90
mov ecx, eax
call fcn.0046bf20
test al, al
je 0x4078f0
push 0x206
lea edx, [esp + 0x2da]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x2e0], cx
call fcn.00476c30
add esp, 0xc
lea eax, [esp + 0x4dc]
push eax
push str._sComponentsSuggList.ini
lea ecx, [esp + 0x2dc]
push 0x104
push ecx
call fcn.0046fdbd
add esp, 0x10
mov dword [esp + 0x20], fcn.00470104
mov dword [esp + 0x24], fcn.00470421
mov dword [esp + 0x28], fcn.00470027
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0x8000
mov dword [esp + 0x1c], 0x4c36dc
mov dword [esp + 0x34], edi
mov byte [esp + 0x38], 1
lea eax, [esi + 0x78]
mov dword [esp + 0x6f0], edi
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esi + 0x28]
sub ebp, dword [esi + 0x24]
xor ebx, ebx
sar ebp, 2
test ebp, ebp
jle 0x4074d4
mov edx, dword [esi + 0x28]
sub edx, dword [esi + 0x24]
sar edx, 2
cmp ebx, edx
jb 0x407482
call fcn.00470dee
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + ebx*4]
xor edx, edx
push 0x7e
push edx
lea eax, [esp + 0x56]
push eax
mov dword [esp + 0x20], ecx
mov word [esp + 0x58], dx
call fcn.00476c30
add esp, 0xc
push edi
push str.bundle_d
lea ecx, [esp + 0x54]
push 0x40
push ecx
call fcn.0046fdbd
mov eax, dword [esp + 0x24]
add esp, 0x10
inc edi
test eax, eax
je 0x4074cf
push eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0x20]
call fcn.0040aa20
inc ebx
cmp ebx, ebp
jl 0x407470
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x3c]
xor ebp, ebp
sar eax, 2
mov dword [esp + 0x14], eax
test eax, eax
jle 0x407545
mov edx, dword [esi + 0x40]
sub edx, dword [esi + 0x3c]
sar edx, 2
cmp ebp, edx
jb 0x4074f9
call fcn.00470dee
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + ebp*4]
xor ecx, ecx
push 0x7e
push ecx
lea edx, [esp + 0x56]
push edx
mov word [esp + 0x58], cx
call fcn.00476c30
add esp, 0xc
push edi
push str.bundle_d
lea eax, [esp + 0x54]
push 0x40
push eax
call fcn.0046fdbd
add esp, 0x10
inc edi
test ebx, ebx
je 0x40753e
push ebx
lea eax, [esp + 0x50]
lea ecx, [esp + 0x20]
call fcn.0040aa20
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x4074e7
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
xor ebp, ebp
sar eax, 2
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4075b6
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp ebp, ecx
jb 0x40756a
call fcn.00470dee
mov edx, dword [esi + 0xc]
mov ebx, dword [edx + ebp*4]
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0x56]
push ecx
mov word [esp + 0x58], ax
call fcn.00476c30
add esp, 0xc
push edi
push str.bundle_d
lea edx, [esp + 0x54]
push 0x40
push edx
call fcn.0046fdbd
add esp, 0x10
inc edi
test ebx, ebx
je 0x4075af
push ebx
lea eax, [esp + 0x50]
lea ecx, [esp + 0x20]
call fcn.0040aa20
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x407558
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xa
push 0x104
lea ecx, [esp + 0xd4]
push ecx
push edi
call fcn.004726a4
mov eax, dword [esp + 0x44]
add esp, 0x10
test eax, eax
jne 0x407666
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
test ecx, ecx
je 0x407607
mov eax, dword [ecx]
cmp eax, edx
jae 0x407607
lea esi, [eax + 0x60]
cmp esi, edx
ja 0x407607
add dword [ecx], 0x60
lea eax, [eax + ecx + 8]
jmp 0x407638
cmp edx, 0x60
jae 0x407611
mov edx, 0x60
add edx, 8
push edx
call dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x407636
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov dword [eax], 0x60
mov dword [esp + 0x2c], eax
add eax, 8
jmp 0x407638
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x6f0], 1
test eax, eax
je 0x407658
push eax
lea ebx, [esp + 0x20]
call fcn.00421560
jmp 0x40765a
xor eax, eax
mov byte [esp + 0x6f0], 0
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x20]
mov ebp, str.MODULE
push ecx
lea edi, [esp + 0x4c]
mov dword [esp + 0x24], ebp
call fcn.00422a60
mov esi, eax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x407718
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
test eax, eax
je 0x4076b9
mov ecx, dword [eax]
cmp ecx, edx
jae 0x4076b9
lea edi, [ecx + 0x60]
cmp edi, edx
ja 0x4076b9
add dword [eax], 0x60
lea ecx, [ecx + eax + 8]
mov eax, ecx
jmp 0x4076ea
cmp edx, 0x60
jae 0x4076c3
mov edx, 0x60
add edx, 8
push edx
call dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x4076e8
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov dword [eax], 0x60
mov dword [esp + 0x2c], eax
add eax, 8
jmp 0x4076ea
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov byte [esp + 0x6f0], 2
test eax, eax
je 0x40770a
push eax
lea ebx, [esp + 0x20]
call fcn.00421560
jmp 0x40770c
xor eax, eax
mov byte [esp + 0x6f0], 0
mov dword [esp + 0x34], eax
test esi, esi
je 0x40772c
mov eax, dword [esi + 4]
lea ecx, [esp + 0xcc]
push ecx
jmp 0x4077f8
test eax, eax
je 0x407767
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
lea edi, [esp + 0x20]
mov dword [esp + 0x24], ebp
call fcn.00422a60
test eax, eax
je 0x40775b
mov eax, dword [eax + 4]
test eax, eax
jne 0x4077f0
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x4077ea
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
test edx, edx
je 0x407789
mov eax, dword [edx]
cmp eax, ecx
jae 0x407789
lea esi, [eax + 0x60]
cmp esi, ecx
ja 0x407789
add dword [edx], 0x60
lea eax, [eax + edx + 8]
jmp 0x4077ba
cmp ecx, 0x60
jae 0x407793
mov ecx, 0x60
add ecx, 8
push ecx
call dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x4077b8
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov dword [eax], 0x60
mov dword [esp + 0x2c], eax
add eax, 8
jmp 0x4077ba
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov byte [esp + 0x6f0], 3
test eax, eax
je 0x4077da
push eax
lea ebx, [esp + 0x20]
call fcn.00421560
jmp 0x4077dc
xor eax, eax
mov ecx, eax
mov byte [esp + 0x6f0], 0
mov dword [esp + 0x34], ecx
push ebp
call fcn.00421800
lea edx, [esp + 0xcc]
push edx
push 0x4cc068
push eax
call fcn.00421630
call fcn.00471f15
lea eax, [esp + 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xd6]
push edx
mov word [esp + 0xd8], cx
call fcn.00476c30
add esp, 0xc
push 0
call fcn.0047200b
add esp, 4
push edx
push eax
lea eax, [esp + 0x4e4]
push eax
push str._sComponentsSuggList._d.ini
lea ecx, [esp + 0xdc]
push 0x104
push ecx
call fcn.0046fdbd
add esp, 0x18
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov byte [esp + 0x48], 0
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x2d8]
lea ecx, [esp + 0x20]
mov byte [esp + 0x6f4], 4
call fcn.00422390
test al, al
jne 0x4078b1
lea ecx, [esp + 0x44]
call fcn.0041a4d0
lea ecx, [esp + 0x44]
call fcn.0041a420
mov dword [esp + 0x6f0], 0xffffffff
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0x4c345c
test eax, eax
je 0x4078ec
mov edx, dword [eax + 4]
push eax
mov dword [esp + 0x30], edx
call dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x4078d5
mov al, 1
jmp 0x4078f2
xor al, al
mov ecx, dword [esp + 0x6e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.0046fdae
add esp, 0x6e0
ret