Function at 0x402260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 1
xor esi, esi
xor ebx, ebx
xor eax, eax
mov edx, 0x2328
cmp edi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], ecx
jle 0x40252f
cmp edi, ecx
mov dword [ebp - 0x20], ecx
jle 0x40252f
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
push ecx
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push ecx
call fcn.004025b0
add esp, 0xc
cmp eax, esi
jne 0x402567
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x40250b
push str.host
push eax
call fcn.00409a80
add esp, 8
test eax, eax
jne 0x40233b
mov edi, dword [ebp - 4]
cmp edi, esi
je 0x40250b
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004058d0
mov edi, dword [ebp - 4]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp - 0x1c], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
jmp 0x40250b
mov ecx, dword [ebp - 8]
push 0x4113a4
push ecx
call fcn.00409a80
add esp, 8
test eax, eax
jne 0x40236d
mov edx, dword [ebp - 4]
push edx
call fcn.004058c0
add esp, 4
cmp ax, si
mov dword [ebp - 0x24], eax
jbe 0x40259b
jmp 0x40250b
mov eax, dword [ebp - 8]
push 0x4113ac
push eax
call fcn.00409a80
add esp, 8
test eax, eax
jne 0x40239f
mov ecx, dword [ebp - 4]
push ecx
call fcn.004058c0
add esp, 4
cmp ax, si
mov dword [ebp - 0x10], eax
jbe 0x40259b
jmp 0x40250b
mov edx, dword [ebp - 8]
push 0x4113b4
push edx
call fcn.00409a80
add esp, 8
test eax, eax
jne 0x4023d0
mov eax, dword [ebp - 4]
push eax
call fcn.004058c0
add esp, 4
cmp eax, esi
jle 0x40259b
mov dword [ebp - 0x18], eax
jmp 0x40250b
mov ecx, dword [ebp - 8]
push 0x4113b8
push ecx
call fcn.00409a80
add esp, 8
test eax, eax
jne 0x40244c
mov edx, dword [ebp - 4]
push str.https
push edx
call fcn.00409a80
add esp, 8
test eax, eax
jne 0x402406
mov dword [ebp - 0xc], 3
jmp 0x40250b
mov eax, dword [ebp - 4]
push str.http
push eax
call fcn.00409a80
add esp, 8
test eax, eax
jne 0x402427
mov dword [ebp - 0xc], 2
jmp 0x40250b
mov ecx, dword [ebp - 4]
push str.socket
push ecx
call fcn.00409a80
add esp, 8
test eax, eax
jne 0x40259b
mov dword [ebp - 0xc], 1
jmp 0x40250b
mov edx, dword [ebp - 8]
push 0x4113d8
push edx
call fcn.00409a80
add esp, 8
test eax, eax
jne 0x4024ca
mov eax, dword [ebp - 4]
push 0x414b0c
push eax
call fcn.00409a80
add esp, 8
test eax, eax
je 0x40250b
mov eax, dword [ebp - 4]
cmp byte [eax], 0x2d
je 0x402489
mov ebx, eax
jmp 0x40250b
lea ecx, [ebp - 0x32c]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.d2kformslog.html
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edx, [ebp - 0x32c]
push eax
push edx
lea eax, [ebp - 0x12c]
push str._s_d_s
push eax
call fcn.004057b0
add esp, 0x14
lea ebx, [ebp - 0x12c]
jmp 0x40250b
mov ecx, dword [ebp - 8]
push 0x41140c
push ecx
call fcn.00409a80
add esp, 8
test eax, eax
jne 0x4024ec
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov dword [0x414b00], eax
jmp 0x40250b
mov edx, dword [ebp - 8]
push 0x411410
push edx
call fcn.00409a80
add esp, 8
test eax, eax
jne 0x402587
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp + 0xc], edx
jl 0x4022b6
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x28]
and eax, 0xffff
push esi
mov esi, dword [ebp + 0x10]
push esi
push ebx
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
and ecx, 0xffff
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
and edx, 0xffff
push edx
push ecx
call fcn.00402600
add esp, 0x24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
push ecx
push esi
push 8
push esi
push edx
call fcn.00401c10
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push eax
push esi
push 8
push esi
push ecx
call fcn.00401c10
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret