Function at 0x507470
Capabilities:
Copy file
Delete file
Get common file path
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2bc
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.zipfldr.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x5074de
mov eax, dword [esp + 0x2d0]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5083a3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x5083a3
mov edx, dword [esp + 0x2d0]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2bc
ret
mov eax, dword [esp + 0x2d0]
xor ebx, ebx
push 0x5468e8
push eax
mov byte [esp + 0x4c], 0x50
mov byte [esp + 0x4d], 0x4b
mov byte [esp + 0x4e], 5
mov byte [esp + 0x4f], 6
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], bl
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], bl
mov byte [esp + 0x54], bl
mov byte [esp + 0x55], bl
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], bl
mov byte [esp + 0x58], bl
mov byte [esp + 0x59], bl
mov byte [esp + 0x5a], bl
mov byte [esp + 0x5b], bl
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], bl
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], bl
mov byte [esp + 0x60], bl
mov byte [esp + 0x61], bl
call fcn.005322c8
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x507617
mov ecx, dword [0x546560]
mov edx, str.Write_Error
test edx, edx
mov dword [esp + 0x10], ecx
je 0x5075a8
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebx
je 0x5075a8
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x5075a8
mov eax, dword [esp + 0x10]
inc esi
push esi
push str.Write_Error
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2d0]
push ebx
push ecx
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5075f4
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x5075f4
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x2d0]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5083a3
add eax, 0xfffffff4
push eax
call esi
jmp 0x5074b6
push esi
push 0x16
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.0053215e
push esi
call fcn.005320e1
mov ecx, dword [esp + 0x2e4]
add esp, 0x14
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
cmp edx, ebx
jl 0x50764d
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x507661
mov edx, dword [0x546560]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edx
call fcn.00405920
mov eax, dword [0x553d9c]
mov ecx, 0x81
mov dword [esp + 0xc0], eax
xor eax, eax
lea edi, [esp + 0xc4]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc4]
push ecx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x546560]
mov ecx, 0x105
mov dword [esp + 0x20], eax
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x5076b1
cmp dword [eax - 4], ecx
jge 0x5076fa
mov esi, dword [eax - 8]
cmp esi, ecx
mov dword [esp + 0x14], esi
jle 0x5076be
mov ecx, esi
push ecx
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x5076fa
mov edi, dword [esp + 0x20]
lea ecx, [esi + esi + 2]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [eax - 8], ecx
call fcn.00405590
mov eax, dword [esp + 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x20]
call fcn.004055c0
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call edi
mov ecx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x20]
mov ecx, str.S_OK_tmp_
mov word [edx + eax*2], bx
mov eax, dword [0x546560]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x507779
push ecx
call ebp
mov esi, eax
cmp esi, ebx
je 0x507779
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x507779
mov edx, dword [esp + 0x10]
inc esi
push esi
push str.S_OK_tmp_
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00405a90
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5077ba
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x5077ba
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [0x546560]
mov ecx, 0x546f04
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x5077d0
xor eax, eax
jmp 0x5077d7
push 0x546f04
call edi
push 0x546f04
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.004059f0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.00405440
lea ecx, [esp + 0x10]
call fcn.00405700
mov eax, dword [0x55cee4]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x20]
call fcn.00405a90
mov edx, dword [0x546560]
mov eax, str._install.exe
test eax, eax
mov dword [esp + 0x10], edx
je 0x507862
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x507862
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x507862
mov ecx, dword [esp + 0x10]
inc esi
push esi
push str._install.exe
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00405a90
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5078a3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x5078a3
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [0x546560]
mov ecx, 0x546f04
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x5078b9
xor eax, eax
jmp 0x5078c0
push 0x546f04
call edi
push 0x546f04
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.004059f0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call fcn.00405440
lea ecx, [esp + 0x10]
call fcn.00405700
mov eax, dword [0x55cee4]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x24]
call fcn.00405a90
mov edx, dword [0x546560]
mov eax, str..exe
test eax, eax
mov dword [esp + 0x10], edx
je 0x50794b
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x50794b
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x50794b
mov ecx, dword [esp + 0x10]
inc esi
push esi
push str..exe
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00405a90
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50798c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50798c
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, 0x547b28
test eax, eax
je 0x507d05
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov ebp, eax
cmp ebp, ebx
je 0x507b4a
mov ecx, 0x546f04
test ecx, ecx
jne 0x5079bb
mov dword [esp + 0x10], ebx
jmp 0x5079c6
push 0x546f04
call esi
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x18]
xor edi, edi
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x34], eax
jae 0x507b4a
push 0x547b28
push esi
call fcn.0053176f
add esp, 8
cmp eax, ebx
je 0x507a06
lea esi, [eax + ebp*2]
push 0x547b28
push esi
inc edi
call fcn.0053176f
add esp, 8
cmp eax, ebx
jne 0x5079f0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x34]
cmp esi, eax
jb 0x5079de
cmp edi, ebx
jle 0x507b4a
lea ecx, [esp + 0x18]
call fcn.004055c0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
sub eax, ebp
imul eax, edi
mov ecx, dword [esi - 8]
mov dword [esp + 0x28], ecx
add eax, ecx
mov ecx, dword [esi - 4]
mov dword [esp + 0x40], eax
cmp ecx, eax
jl 0x507a51
cmp dword [esi - 0xc], 1
jle 0x507a8f
lea ecx, [esi - 0xc]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x507b4a
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push eax
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405590
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x34], eax
jae 0x507b43
push 0x547b28
push esi
call fcn.0053176f
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x507b28
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x28]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebp
lea ecx, [edi + ebp*2]
lea ebx, [eax + eax]
lea eax, [esi + edi]
push ebx
push ecx
push eax
mov dword [esp + 0x20], eax
call fcn.00531870
mov ecx, esi
mov esi, 0x546f04
mov edx, ecx
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebp
and ecx, 3
push 0x547b28
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
push esi
mov word [ebx + esi], 0
mov ebx, dword [esp + 0x3c]
add ebx, eax
mov dword [esp + 0x3c], ebx
call fcn.0053176f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x507ab5
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x34]
cmp esi, eax
jb 0x507aa1
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov dword [esi - 8], ecx
push 0x547b28
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
cmp ebp, ebx
je 0x507d05
mov edx, 0x546f04
test edx, edx
jne 0x507b6e
mov dword [esp + 0x10], ebx
jmp 0x507b7d
push 0x546f04
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x28], eax
jae 0x507d05
push 0x547b28
push esi
call fcn.0053176f
add esp, 8
cmp eax, ebx
je 0x507bbd
lea esi, [eax + ebp*2]
push 0x547b28
push esi
inc edi
call fcn.0053176f
add esp, 8
cmp eax, ebx
jne 0x507ba7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x28]
cmp esi, eax
jb 0x507b95
cmp edi, ebx
jle 0x507d05
lea ecx, [esp + 0x1c]
call fcn.004055c0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
sub eax, ebp
imul eax, edi
mov ecx, dword [esi - 8]
mov dword [esp + 0x34], ecx
add eax, ecx
mov ecx, dword [esi - 4]
mov dword [esp + 0x14], eax
cmp ecx, eax
jl 0x507c08
cmp dword [esi - 0xc], 1
jle 0x507c4a
lea ecx, [esi - 0xc]
push eax
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x507d05
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
push eax
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405590
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi - 8]
lea ebx, [esi + ecx*2]
cmp esi, ebx
mov dword [esp + 0x28], ebx
jae 0x507d00
push 0x547b28
push esi
call fcn.0053176f
mov edi, eax
add esp, 8
test edi, edi
je 0x507ce5
mov eax, dword [esp + 0x1c]
mov edx, edi
sub edx, eax
mov eax, dword [esp + 0x34]
sar edx, 1
sub eax, edx
lea ecx, [edi + ebp*2]
sub eax, ebp
lea ebx, [eax + eax]
mov eax, dword [esp + 0x10]
push ebx
push ecx
lea esi, [eax + eax]
lea eax, [esi + edi]
push eax
mov dword [esp + 0x4c], eax
call fcn.00531870
mov ecx, esi
mov esi, 0x546f04
mov edx, ecx
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebp
and ecx, 3
push 0x547b28
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x50]
push esi
mov word [ebx + esi], 0
mov ebx, dword [esp + 0x48]
add ebx, eax
mov dword [esp + 0x48], ebx
call fcn.0053176f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x507c70
mov ebx, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebx
jb 0x507c5c
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esi - 8], eax
xor ebx, ebx
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
lea edx, [esp + 0xc4]
push ecx
push edx
call esi
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0xc4]
push eax
push ecx
call esi
mov edx, dword [0x546560]
mov eax, str.Error___
test eax, eax
mov dword [esp + 0x24], edx
je 0x507d7e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebx
je 0x507d7e
push esi
lea ecx, [esp + 0x28]
call fcn.00405530
test eax, eax
je 0x507d7e
mov ecx, dword [esp + 0x24]
inc esi
push esi
push str.Error___
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
call fcn.00405bb0
mov edx, dword [0x546560]
mov eax, 0x553dd8
test eax, eax
mov dword [esp + 0x2c], edx
je 0x507dcb
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebx
je 0x507dcb
push esi
lea ecx, [esp + 0x30]
call fcn.00405530
test eax, eax
je 0x507dcb
mov ecx, dword [esp + 0x2c]
inc esi
push esi
push 0x553dd8
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0xffffffffffffffff
call fcn.00405bb0
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ebx
push edx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp dword [esp + 0x38], ebx
jne 0x507f09
mov eax, dword [esp + 0x2c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x507e0f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x507e0f
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x507e3a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x507e3a
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x507e65
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x507e65
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x507e90
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x507e90
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x507ebb
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x507ebb
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x30]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x507ee6
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x507ee6
mov edx, dword [esp + 0x30]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x2d0]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5083a3
add eax, 0xfffffff4
push eax
call edi
jmp 0x5074b6
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x507f8d
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x507f2a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x507f55
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x507f55
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x508373
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x508373
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x508373
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.00413620
mov esi, eax
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], esi
call fcn.00413620
cmp esi, ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
je 0x50818e
mov edi, dword [sym.imp.USER32.dll_CreatePopupMenu]
mov eax, esi
lea ebp, [esp + 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
cmp eax, ebx
je 0x508358
lea ecx, [esp + 0x64]
lea edx, [esp + 0x60]
push ecx
push edx
push eax
call fcn.00508410
add esp, 0xc
test eax, eax
je 0x5083b0
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x64]
mov ecx, dword [eax]
push 0x542354
push ebx
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x28]
push edx
push ebx
lea edx, [esp + 0x6c]
push 0x542364
push edx
mov dword [esp + 0x38], ebx
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x5081e9
call edi
mov ecx, dword [esp + 0x28]
push 4
push 0x7fff
push 1
mov edx, dword [ecx]
push ebx
push eax
push ecx
call dword [edx + 0xc]
test eax, eax
jl 0x50822e
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x78]
mov dword [esp + 0x78], 0x24
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], 0x54f130
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x542354
push ebx
push edx
push eax
call dword [ecx + 0x14]
mov dword [esp + 0x10], ebx
call edi
mov esi, eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x508273
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x542364
push eax
call dword [ecx]
test eax, eax
jl 0x5082c9
mov eax, dword [esp + 0x10]
push 4
push 0x7fff
push 1
mov ecx, dword [eax]
push ebx
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x508306
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], 0x24
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], str.paste
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], 1
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x10]
lea ecx, [esp + 0x10]
call fcn.004bddc0
lea ecx, [esp + 0x28]
call fcn.004bddc0
mov eax, dword [ebp + 4]
add ebp, 4
cmp eax, ebx
jne 0x507fcf
lea ecx, [esp + 0x38]
call fcn.004bddc0
lea ecx, [esp + 0x2c]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x1c]
call fcn.00405700
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x20]
call fcn.00405700
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x2d0]
call fcn.00405700
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2bc
ret
push 0x54b8b0
lea ecx, [esp + 0x18]
call fcn.00405730
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00412dc0
mov eax, dword [eax]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x34]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
jmp 0x50834f
push 0x54b8b4
lea ecx, [esp + 0x18]
call fcn.00405730
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00412dc0
mov eax, dword [eax]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x34]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
jmp 0x50834f
push 0x54f12c
lea ecx, [esp + 0x18]
call fcn.00405730
lea edx, [esp + 0x30]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.00412dc0
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00412dc0
mov ecx, dword [eax]
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x5c]
call fcn.00405700
lea ecx, [esp + 0x3c]
call fcn.00405700
lea ecx, [esp + 0x14]
jmp 0x508341
push 0x54f128
lea ecx, [esp + 0x18]
call fcn.00405730
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00412dc0
mov eax, dword [eax]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x3c]
call fcn.00405700
lea ecx, [esp + 0x14]
jmp 0x508341
push 0x54f124
lea ecx, [esp + 0x18]
call fcn.00405730
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00412dc0
mov eax, dword [eax]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x3c]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.004bddc0
lea ecx, [esp + 0x28]
call fcn.004bddc0
lea ecx, [esp + 0x38]
call fcn.004bddc0
lea ecx, [esp + 0x2c]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x1c]
call fcn.00405700
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x20]
call fcn.00405700
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x2d0]
call fcn.00405700
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2bc
ret
push 0x54f118
lea ecx, [esp + 0x18]
call fcn.00405730
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.00412dc0
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00412dc0
mov ecx, dword [eax]
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x3c]
call fcn.00405700
lea ecx, [esp + 0x5c]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
jmp 0x508358