Function at 0x415520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1fc
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x30], ebp
call dword [sym.imp.USER32.dll_GetFocus]
push 0x80
mov esi, eax
mov dword [esp + 0x14], 0x4cc6f4
call fcn.004be967
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
add esp, 4
xor ebx, ebx
mov edi, 1
cmp esi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x1f
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x20], edi
jne 0x41565f
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 8
push 0x110a
push eax
call esi
cmp eax, ebx
jne 0x41559e
mov eax, dword [ebp + 0x10]
push ebx
push 9
push 0x110a
push eax
call esi
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.00404c10
add esp, 8
cmp eax, ebx
je 0x4159eb
mov eax, dword [eax + 4]
lea edx, [esp + 0x104]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4159eb
lea ecx, [esp + 0x104]
push ecx
call fcn.0044a200
add esp, 4
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x4159eb
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x41564f
mov eax, dword [esp + 0x24]
add ecx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.004be967
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebx, eax
lea ecx, [edx*4 + 4]
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004be975
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add esp, 8
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx + edx*4], eax
jmp 0x4159e7
mov eax, dword [ebp + 0x24]
cmp esi, eax
jne 0x41573e
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call esi
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 4
push eax
push ebx
push 0x1005
push ecx
mov dword [esp + 0x50], ebx
call esi
mov edx, dword [esp + 0x58]
neg eax
sbb eax, eax
and eax, edx
cmp dword [eax + 0xc], edi
jne 0x4159eb
mov edx, dword [eax + 8]
push edx
call fcn.0044a200
add esp, 4
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x4159eb
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x41572e
mov eax, dword [esp + 0x24]
add ecx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.004be967
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebx, eax
lea ecx, [edx*4 + 4]
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004be975
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add esp, 8
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx + edx*4], eax
jmp 0x4159e7
cmp esi, dword [ebp + 0xc]
jne 0x41595d
lea ecx, [esp + 0x38]
call fcn.00424d70
lea ecx, [esp + 0x38]
mov dword [esp + 0x48], ebx
call fcn.00422ae0
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x1032
push eax
call edi
cmp eax, 1
jl 0x4157a3
or esi, 0xffffffff
cmp eax, ebx
jle 0x4157a3
mov ebx, eax
mov ecx, dword [ebp + 0xc]
push 2
push esi
push 0x100c
push ecx
call edi
mov esi, eax
mov ecx, ebp
push esi
call fcn.00417e00
push eax
lea ecx, [esp + 0x3c]
call fcn.0043c6f0
dec ebx
jne 0x41577e
mov eax, dword [esp + 0x40]
xor esi, esi
test eax, eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], esi
jle 0x4158bc
cmp esi, eax
jge 0x4157ce
test esi, esi
jl 0x4157ce
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + esi*4]
jmp 0x4157d0
xor ecx, ecx
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x41589f
cmp dword [ecx + 8], 2
je 0x41589f
lea eax, [esp + 0x104]
push 1
lea edx, [ebp + 0x20c]
push eax
push edx
mov dword [esp + 0x38], 0
call fcn.00424820
test eax, eax
je 0x41589f
lea eax, [esp + 0x104]
push eax
call fcn.0044a200
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x41589b
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x415887
mov edx, dword [esp + 0x24]
add eax, edx
lea eax, [eax*4 + 4]
push eax
call fcn.004be967
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebx, eax
lea ecx, [ecx*4 + 4]
mov edi, ebx
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]
mov eax, dword [esp + 0x18]
push eax
call fcn.004be975
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
add esp, 8
add eax, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx + eax*4], ebp
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
inc esi
cmp esi, eax
mov dword [esp + 0x34], esi
jl 0x4157c1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41594f
lea ecx, [ebp + 0x20c]
push ecx
call fcn.0044a200
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esp + 0x2c], ecx
je 0x41594f
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea edx, [eax + 1]
cmp esi, edx
jne 0x41593b
mov ecx, dword [esp + 0x24]
add eax, ecx
lea edx, [eax*4 + 4]
push edx
call fcn.004be967
mov ebx, eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edi, ebx
lea ecx, [eax*4 + 4]
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]
mov eax, dword [esp + 0x18]
push eax
call fcn.004be975
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add esp, 8
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x38]
call fcn.00424ec0
jmp 0x4159eb
lea ecx, [ebp + 0x20c]
push ecx
call fcn.0044a200
mov ecx, eax
add esp, 4
cmp ecx, ebx
mov dword [esp + 0x2c], ecx
je 0x4159eb
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea edx, [eax + 1]
cmp esi, edx
jne 0x4159dc
mov ecx, dword [esp + 0x24]
add eax, ecx
lea edx, [eax*4 + 4]
push edx
call fcn.004be967
mov ebx, eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edi, ebx
lea ecx, [eax*4 + 4]
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]
mov eax, dword [esp + 0x18]
push eax
call fcn.004be975
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add esp, 8
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx + eax*4], ecx
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x415a57
mov ecx, dword [str.ACDSee_32]
push 0
push ecx
push str.You_must_make_a_selection
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x4cc6f4
test eax, eax
je 0x415a3f
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x415a3f
push esi
lea ecx, [esp + 0x14]
call fcn.0042cac0
push eax
call fcn.004be975
mov eax, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, eax
jl 0x415a23
mov edx, dword [esp + 0x14]
push edx
call fcn.004be975
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret
mov ecx, dword [ebp + 0x200]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.004273f0
mov edx, dword [ebp + 8]
mov eax, dword [0x4eb7d8]
mov ecx, dword [0x4eb7dc]
mov dword [esp + 0x60], edx
mov edx, dword [0x4eb7e0]
mov dword [esp + 0x64], eax
mov eax, dword [0x4eb7e4]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
call fcn.00427ff0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [0x4eb7d8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [0x4eb7dc], edx
mov edx, dword [esp + 0x70]
cmp eax, 1
mov dword [0x4eb7e0], ecx
mov dword [0x4eb7e4], edx
jne 0x415ae7
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x415ae7
mov eax, dword [ebp]
push 0
lea ecx, [esp + 0x78]
push 0
push ecx
mov ecx, ebp
call dword [eax]
lea ecx, [esp + 0x60]
call fcn.004275b0
lea ecx, [esp + 0x10]
call fcn.00403b80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret