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

Disassembly:
push 0xffffffffffffffff
push 0x603c7c
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x7161c0]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
push edi
mov eax, dword [0x7161c0]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x130], 1
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x140]
lea edx, [esp + 0x13c]
mov dword [esi + 0x158], ecx
lea ecx, [esi + 0x150]
push edx
mov dword [esi + 0x154], eax
call fcn.00403020
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x138]
mov dword [esi + 0x164], eax
mov dword [esi + 0x170], 0
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x4038f9
push 0x630fc8
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x140]
add esp, 8
test eax, eax
je 0x4038f9
sub eax, ecx
je 0x4039b9
cmp dword [ecx - 0xc], 0
jl 0x403920
push str.HTTP:__
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x140]
add esp, 8
test eax, eax
je 0x403920
sub eax, ecx
je 0x4039b9
lea edi, [esi + 0x74]
push ecx
mov ecx, edi
call fcn.0043edd0
test eax, eax
je 0x403b1e
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.0043c040
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, edi
mov dword [esi + 0x15c], edx
mov dword [esi + 0x160], eax
mov dword [esi + 0x170], 1
call fcn.0043d980
cmp dword [esi + 0x164], 0
je 0x403b1e
lea ecx, [esp + 0xc]
call fcn.00403350
mov byte [esp + 0x130], 5
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.0043df10
test eax, eax
je 0x4039a3
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov byte [esp + 0x130], 1
lea ecx, [esp + 0xc]
call fcn.004033b0
jmp 0x403b1e
mov eax, dword [esi + 0x174]
test eax, eax
je 0x4039e3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x174]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x174], 0
lea edx, [esp + 0x138]
lea ecx, [esi + 0x168]
push edx
call fcn.00403020
mov eax, dword [esp + 0x138]
push 0x2e
push eax
call fcn.005d940c
mov ecx, dword [esp + 0x140]
add esp, 8
test eax, eax
jne 0x403a18
or edi, 0xffffffff
jmp 0x403a1c
sub eax, ecx
mov edi, eax
push 0x3f
push ecx
call fcn.005d940c
mov ecx, dword [esp + 0x140]
add esp, 8
test eax, eax
je 0x403a36
sub eax, ecx
jns 0x403a39
mov eax, dword [ecx - 0xc]
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x144]
call fcn.00402e40
mov byte [esp + 0x130], 2
lea edx, [esp + 0x24]
push edx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x24]
lea edi, [esi + 0x16c]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403a73
sub eax, ecx
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00401bb0
push str.atimage
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00403170
mov byte [esp + 0x13c], 3
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004030c0
add esp, 0x18
mov byte [esp + 0x130], 4
push eax
mov ecx, edi
call fcn.00403020
mov byte [esp + 0x130], 3
lea ecx, [esp + 0x20]
call fcn.00401a50
mov byte [esp + 0x130], 2
lea ecx, [esp + 0x18]
call fcn.00401a50
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push 0x403500
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x174], eax
mov byte [esp + 0x130], 1
lea ecx, [esp + 0x14]
call fcn.00401a50
mov byte [esp + 0x130], 0
lea ecx, [esp + 0x138]
call fcn.00401a50
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x13c]
call fcn.00401a50
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.005d8d34
add esp, 0x128
ret 0x14