Function at 0x4229de
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.00427919
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 8
call fcn.00427919
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.0041cb33
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x422a56
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x4328ae
push dword [ebp - 4]
call fcn.00401193
add esp, 8
cmp eax, 0
jne 0x422a9a
push 1
push 0
call fcn.004064e5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x422a96
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 1
push 5
call fcn.004064e5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x422abd
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.00429640
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x422af6
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esp
push 0
push 0x10
push dword [ebp - 8]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x422b35
push 0x128
push 0x4012a8a
push 6
call fcn.0042792b
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x422b47
jmp 0x423599
push 0x432996
push dword [ebp - 8]
mov ecx, 2
call fcn.00401380
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x422b73
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [0x433963]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x422ba1
push 0x203
push 0x4012a8a
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x422bbe
push 0x203
push 0x4012a8a
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x18], ebx
push str..url
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push dword [ebp - 8]
mov ecx, 3
call fcn.00401380
add esp, 0xc
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x422bfb
mov eax, 0x4328ae
push eax
push 1
mov ebx, 0x24c
call fcn.00429110
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x422c21
push ebx
call fcn.0042791f
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x422c30
jmp 0x423599
mov ebx, dword [0x433963]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x422c5a
push 0x346
push 0x4012a8a
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x422c77
push 0x346
push 0x4012a8a
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x18]
call fcn.004112f4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x422cf8
push ebx
call fcn.0042791f
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x422d08
push ebx
call fcn.0042791f
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x422d18
push ebx
call fcn.0042791f
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x422d28
push ebx
call fcn.0042791f
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x422d38
push ebx
call fcn.0042791f
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x422d4c
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 0xa
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x422d75
mov eax, 0x432422
push eax
push 3
mov ebx, 0x19c
call fcn.00428110
add esp, 0x28
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
push reloc.WS2_32.dll_bind
push 0
push 1
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str._html
mov ecx, dword [ebp - 0x18]
cmp ecx, reloc.WS2_32.dll_connect
je 0x422dd1
push 0x3a7
push 0x4012a8a
push 5
call fcn.0042792b
add esp, 0xc
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x422de4
mov eax, 0x4328ae
push eax
push 4
mov ebx, 0x148
call fcn.004282b0
add esp, 0x34
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x422e0a
push ebx
call fcn.0042791f
add esp, 4
cmp dword [ebp - 0x24], 0xffffffff
je 0x422e45
mov eax, 0x432422
test eax, eax
je 0x422e30
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00427919
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x422e41
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x432422
xor ecx, ecx
test eax, eax
je 0x422e53
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x422e64
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x422e7b
dec eax
test ecx, ecx
je 0x422e7b
call fcn.004012d4
add esp, 0xc
test eax, eax
je 0x422f41
mov ebx, dword [0x433963]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x422eb0
push 0x441
push 0x4012a8a
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x422ecd
push 0x441
push 0x4012a8a
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x18], ebx
push str..ico
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push dword [ebp - 4]
mov ecx, 3
call fcn.00401380
add esp, 0xc
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x422f0a
mov eax, 0x432422
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x422f1e
mov eax, 0x4328ae
push eax
push 2
mov ebx, 0x26c
call fcn.00429d40
add esp, 0x1c
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x422f41
push ebx
call fcn.0042791f
add esp, 4
mov dword [ebp - 0x18], esp
push 0
xor eax, eax
call dword [sym.imp.ole32.dll_CoInitialize]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x422f6f
push 0x54e
push 0x4012a8a
push 6
call fcn.0042792b
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x422faa
mov dword [ebp - 0x18], esp
push 0
xor eax, eax
call dword [sym.imp.ole32.dll_CoInitialize]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x422faa
push 0x5ad
push 0x4012a8a
push 6
call fcn.0042792b
add esp, 0xc
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.F935DC22_1CF0_11d0_ADB9_00C04FD58A0B
push 0x10030
push 0
push dword [ebp - 0x10]
push 3
mov ebx, 0x91c
call fcn.0042b990
add esp, 0x28
test eax, eax
je 0x4234b7
mov ebx, dword [0x433963]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x42300a
push 0x696
push 0x4012a8a
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x423027
push 0x696
push 0x4012a8a
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x18], ebx
push str..url
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push dword [ebp - 8]
mov ecx, 3
call fcn.00401380
add esp, 0xc
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x423064
mov eax, 0x4328ae
push eax
push reloc.WS2_32.dll_connect
push 0
push str.CreateShortcut
push 0x10030
push 0
push dword [ebp - 0x10]
push 3
mov ebx, 0x964
call fcn.0042be60
add esp, 0x28
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4230a0
push ebx
call fcn.0042791f
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x924
call fcn.0042bb70
add esp, 0x10
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [0x433963]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x4230f5
push 0x6d3
push 0x4012a8a
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x423112
push 0x6d3
push 0x4012a8a
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x423134
mov eax, 0x4328ae
push eax
push reloc.WS2_32.dll_connect
push 0
push str.TargetPath
push 0x10030
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x948
call fcn.0042bb90
add esp, 0x28
push 0x80000301
push 0
push 2
push reloc.WS2_32.dll_connect
push 0
push str.WindowStyle
push 0x10030
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x948
call fcn.0042bb90
add esp, 0x28
mov ebx, dword [0x433963]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x4231bb
push 0x76d
push 0x4012a8a
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4231d8
push 0x76d
push 0x4012a8a
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x18], ebx
push str..ico
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push dword [ebp - 4]
mov ecx, 3
call fcn.00401380
add esp, 0xc
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x423215
mov eax, 0x4328ae
push eax
push reloc.WS2_32.dll_connect
push 0
push str.IconLocation
push 0x10030
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x948
call fcn.0042bb90
add esp, 0x28
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42324e
push ebx
call fcn.0042791f
add esp, 4
mov ebx, dword [0x433963]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x423278
push 0x7bb
push 0x4012a8a
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x423295
push 0x7bb
push 0x4012a8a
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x18], ebx
push str..url
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push dword [ebp - 8]
mov ecx, 3
call fcn.00401380
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [0x433963]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x4232e9
push 0x81a
push 0x4012a8a
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x423306
push 0x81a
push 0x4012a8a
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x20], ebx
push str..ico
mov ebx, dword [ebp - 0x20]
push dword [ebx]
push dword [ebp - 4]
mov ecx, 3
call fcn.00401380
add esp, 0xc
mov dword [ebp - 0x24], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x423343
mov eax, 0x4328ae
push eax
push reloc.WS2_32.dll_connect
push 0
push str.IconFile
push reloc.WS2_32.dll_connect
push 0
push str.InternetShortcut
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x42336f
mov eax, 0x4328ae
push eax
push 4
mov ebx, 0x8cc
call fcn.0042a920
add esp, 0x34
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x423392
push ebx
call fcn.0042791f
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4233a2
push ebx
call fcn.0042791f
add esp, 4
mov ebx, dword [0x433963]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x4233cc
push 0x868
push 0x4012a8a
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4233e9
push 0x868
push 0x4012a8a
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x18], ebx
push str..url
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push dword [ebp - 8]
mov ecx, 3
call fcn.00401380
add esp, 0xc
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
push 0x432908
push reloc.WS2_32.dll_connect
push 0
push str.IconIndex
push reloc.WS2_32.dll_connect
push 0
push str.InternetShortcut
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x42344a
mov eax, 0x4328ae
push eax
push 4
mov ebx, 0x8cc
call fcn.0042a920
add esp, 0x34
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42346d
push ebx
call fcn.0042791f
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Save
push 0x10030
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x958
call fcn.0042bc60
add esp, 0x28
push 0x10030
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x924
call fcn.0042bb70
add esp, 0x10
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4234e0
push 0x90d
push 0x4012a8a
push 6
call fcn.0042792b
add esp, 0xc
mov ebx, dword [0x433963]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x42350a
push 0x944
push 0x4012a8a
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x423527
push 0x944
push 0x4012a8a
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x18], ebx
push str..url
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push dword [ebp - 8]
mov ecx, 3
call fcn.00401380
add esp, 0xc
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x423564
mov eax, 0x4328ae
push eax
push 1
mov ebx, 0x24c
call fcn.00429110
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42358a
push ebx
call fcn.0042791f
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x423599
jmp 0x423599
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4235a9
push ebx
call fcn.0042791f
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4235b9
push ebx
call fcn.0042791f
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4235c9
push ebx
call fcn.0042791f
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x924
call fcn.0042bb70
add esp, 0x10
call fcn.0042791f
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x924
call fcn.0042bb70
add esp, 0x10
call fcn.0042791f
add esp, 4
mov esp, ebp
pop ebp
ret 4