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

Disassembly:
push 0xffffffffffffffff
push 0x4776a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x34], ebx
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
xor ebp, ebp
mov dword [esp + 0xb4], ebp
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0xbc]
push edi
lea eax, [esp + 0x18]
lea ecx, [ebx + 0x104c]
push eax
mov byte [esp + 0xbc], 1
call fcn.004657c1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 2
call fcn.00402990
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4170fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0xffff0001
mov ecx, 1
mov dword [esp + 0x7c], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
push 0x480e60
push eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x88], ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x74], ebp
call fcn.004578d3
add esp, 8
test eax, eax
je 0x417527
mov dword [esp + 0x1c], ebp
mov eax, dword [ebx + 0xd8]
test eax, eax
mov dword [esp + 0x14], ebp
je 0x4176d6
mov ecx, dword [ebx + 0xdc]
sub ecx, eax
mov eax, 0x66666667
imul ecx
mov eax, dword [esp + 0x1c]
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp eax, edx
jae 0x4176d6
mov eax, dword [ebx + 0xd8]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + ebp]
push edx
push eax
call fcn.004578d3
add esp, 8
test eax, eax
jne 0x41751b
xor edi, edi
mov dword [esp + 0x24], edi
jmp 0x4171b0
mov ecx, dword [ebx + 0xd8]
mov edx, dword [ecx + ebp + 8]
test edx, edx
je 0x41751b
mov eax, dword [ecx + ebp + 0xc]
sub eax, edx
sar eax, 2
cmp edi, eax
jae 0x41751b
mov ecx, edx
mov edi, dword [ecx + edi*4]
test edi, edi
je 0x41750b
mov ecx, edi
call fcn.0043c2c0
mov ebp, eax
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.0043c330
push eax
lea ecx, [esp + 0x34]
push str.Key_Path:
push ecx
mov byte [esp + 0xc0], 3
call fcn.00402a60
add esp, 0xc
mov eax, dword [eax]
lea ecx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
mov byte [esp + 0xb4], 4
je 0x41726e
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jge 0x417242
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402770
mov esi, dword [esp + 0x10]
jmp 0x41726e
push ecx
call fcn.00402360
add esp, 4
mov dword [esp + 0x38], eax
or edx, 0xffffffff
lock xadd dword [esi], edx
dec edx
test edx, edx
jg 0x417263
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov esi, dword [esp + 0x38]
add esi, 0x10
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417294
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4172ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esi - 4], 1
jle 0x4172d1
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.004020c0
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x1068]
lea ecx, [esp + 0x78]
push ecx
push 0
push 0x1100
push edx
mov dword [esp + 0xa0], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
push 1
push edi
lea ecx, [ebx + 0x104c]
call fcn.0046535b
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
mov dword [esp + 0x48], edi
call fcn.00416bc0
push eax
lea ecx, [esp + 0x44]
push str.Key_Name:
push ecx
mov byte [esp + 0xc0], 5
call fcn.00402a60
add esp, 0xc
mov eax, dword [eax]
lea ecx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
mov byte [esp + 0xb4], 6
je 0x417388
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jge 0x41735e
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402770
mov esi, dword [esp + 0x10]
jmp 0x417388
push ecx
call fcn.00402360
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [esi], edx
dec edx
test edx, edx
jg 0x41737d
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea esi, [ebx + 0x10]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4173ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4173d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esi - 4], 1
jle 0x4173eb
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.004020c0
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x1068]
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x1100
push edx
mov dword [esp + 0x6c], esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.00416bf0
push eax
lea ecx, [esp + 0x2c]
push str.Key_Value:
push ecx
mov byte [esp + 0xc0], 7
call fcn.00402a60
add esp, 0xc
mov eax, dword [eax]
lea ecx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
mov byte [esp + 0xb4], 8
je 0x417487
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jge 0x417461
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402770
mov esi, dword [esp + 0x10]
jmp 0x417487
push ecx
call fcn.00402360
add esp, 4
mov ebp, eax
or edx, 0xffffffff
lock xadd dword [esi], edx
dec edx
test edx, edx
jg 0x417480
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea esi, [ebp + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4174ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4174d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esi - 4], 1
jle 0x4174ea
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.004020c0
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x1068]
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x1100
push edx
mov dword [esp + 0x6c], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
mov edi, eax
jmp 0x4171b0
inc dword [esp + 0x1c]
add ebp, 0x14
jmp 0x417149
mov eax, dword [ebx + 0xc8]
mov ecx, dword [eax + 0x48]
add eax, 0x44
test ecx, ecx
mov dword [esp + 0x14], ebp
je 0x4176d6
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 3
cmp ebp, eax
jae 0x4176d6
push str.Shortcut_Path:
lea ecx, [esp + 0x2c]
call fcn.00405920
mov ecx, dword [ebx + 0xc8]
add ecx, 0x44
mov ecx, dword [ecx + 4]
lea ecx, [ecx + ebp*8]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0xc0], 9
call fcn.00408720
add esp, 0xc
mov eax, dword [eax]
lea ecx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
mov byte [esp + 0xb4], 0xa
je 0x4175df
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jge 0x4175b5
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402770
mov esi, dword [esp + 0x10]
jmp 0x4175df
push ecx
call fcn.00402360
add esp, 4
mov ebp, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4175d4
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebp + 0x10]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417605
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41762b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esi - 4], 1
jle 0x417642
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.004020c0
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x1068]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x78]
push ecx
push 0
push 0x1100
push edx
mov dword [esp + 0xa0], esi
call edi
mov esi, eax
push 1
push esi
lea ecx, [ebx + 0x104c]
call fcn.0046535b
mov eax, str.Invalid_Shortcut_file
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x417680
sub eax, ecx
push eax
push str.Invalid_Shortcut_file
lea ecx, [esp + 0x18]
call fcn.00402770
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
jle 0x4176b7
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.004020c0
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x1068]
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x1100
push edx
mov dword [esp + 0x6c], esi
call edi
inc ebp
jmp 0x417527
add esi, 0xfffffff0
mov byte [esp + 0xb4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4176f8
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xb4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x417725
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
add esp, 0xa8
ret 4