Function at 0x40a008
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2060
call fcn.0040b430
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 3
push edi
jne 0x40a027
xor eax, eax
jmp 0x40a23e
test esi, 0x10000
je 0x40a042
push dword [0x4105a4]
mov edi, 0x41ef20
call fcn.00407769
pop ecx
jmp 0x40a049
xor eax, eax
call fcn.00407722
test si, 0x200
je 0x40a055
call fcn.004042c7
mov dword [ebp - 0xc], esi
and dword [ebp - 0xc], 8
push 0
pop edi
mov esi, 0x41cbd8
je 0x40a0dd
cmp dword [0x4105a8], 0x161
jle 0x40a0dd
cmp dword [0x41cbd0], edi
jne 0x40a0dd
mov ebx, 0x1000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40a095
mov edx, esi
call fcn.00406b0d
jmp 0x40a09d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x205c]
push eax
mov edx, esi
call fcn.00405151
pop ecx
mov ecx, 0x4025f0
lea eax, [ebp - 0x205c]
call fcn.0040512d
push edi
push edi
push edi
push dword [0x41cbd4]
push edi
push eax
push dword [0x42016c]
call fcn.00404195
add esp, 0x1c
test eax, eax
jne 0x40a020
test word [ebp + 8], 0x100
je 0x40a0f4
push 5
push 0x402720
call dword [sym.imp.WININET.dll_InternetSetPerSiteCookieDecisionW]
jmp 0x40a0fa
call dword [sym.imp.WININET.dll_InternetClearAllPerSiteCookieDecisions]
call fcn.00404fb5
test eax, eax
jne 0x40a113
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xa
call fcn.00409747
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 8], 1
mov dword [ebp + 8], 0x415ce4
mov eax, dword [ebp + 8]
cmp dword [eax], edi
je 0x40a148
mov ecx, dword [ebp - 8]
push edi
push edi
lea eax, [ebp + ebx*4 - 0x5c]
push eax
push fcn.00409f95
push edi
push edi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + ebx*4 - 0x34], eax
inc ebx
inc dword [ebp - 8]
add dword [ebp + 8], 0x144
cmp dword [ebp + 8], 0x416848
jl 0x40a123
cmp dword [0x415ba0], edi
jne 0x40a167
cmp ebx, edi
je 0x40a198
push edi
push 0xc
call fcn.00409747
cmp dword [0x415ba0], edi
pop ecx
pop ecx
je 0x40a185
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], edi
call fcn.00409f95
cmp ebx, edi
je 0x40a198
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp ebx, edi
mov dword [ebp + 8], edi
jle 0x40a1b4
mov eax, dword [ebp + 8]
push dword [ebp + eax*4 - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp + 8]
cmp dword [ebp + 8], ebx
jl 0x40a19f
call fcn.0040968a
call dword [sym.imp.WININET.dll_InternetClearAllPerSiteCookieDecisions]
cmp dword [ebp - 0xc], edi
je 0x40a23b
cmp dword [0x4105a8], 0x161
jle 0x40a23b
cmp dword [0x41cbd0], edi
je 0x40a23b
mov ebx, 0x1000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40a1f3
mov edx, esi
call fcn.00406b0d
jmp 0x40a1fb
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x205c]
push eax
mov edx, esi
call fcn.00405151
pop ecx
mov ecx, 0x4025f0
lea eax, [ebp - 0x205c]
call fcn.0040512d
push edi
push edi
push edi
push dword [0x41cbd4]
push edi
push eax
push dword [0x42016c]
call fcn.00404195
add esp, 0x1c
test eax, eax
jne 0x40a020
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret