Function at 0x403470
Capabilities:
Copy file
Delete file
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x477818
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9128]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x24], ebx
call fcn.00434e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4034b7
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x6c], 0
call fcn.00434e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4034e9
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov ecx, dword [ebx + 0xc]
xor eax, eax
test ecx, ecx
mov byte [esp + 0x6c], 1
mov dword [esp + 0x20], 1
mov dword [esp + 0x60], ecx
mov dword [esp + 0x18], eax
jg 0x40357c
lea eax, [ebp - 0x10]
mov byte [esp + 0x6c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403538
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40355c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x4039fe
cmp eax, dword [ebx + 0xc]
jge 0x4039fe
lea esi, [eax*4]
mov eax, dword [ebx + 8]
add eax, esi
push eax
lea ecx, [esp + 0x20]
call fcn.00401b60
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebx + 0x20]
jge 0x4039fe
mov edx, dword [ebx + 0x1c]
mov esi, dword [esi + edx]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.00403410
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 2
call fcn.00401b60
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4035fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x1c]
xor edi, edi
push ebp
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push 0x4aa924
push edx
call fcn.00401c40
push str..bak
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x84], 3
call fcn.00401d00
mov eax, dword [eax]
add esp, 0x18
push 0
push 0
push eax
push ebp
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
mov eax, dword [esp + 0x2c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40366b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403690
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x403729
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x3c]
push 0x4aa924
push edx
call fcn.00401c40
push str..bak
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x84], 4
call fcn.00401d00
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403715
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 3
jl 0x403601
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push 0x4aa924
push edx
call fcn.00401c40
push str..bak
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x84], 5
call fcn.00401d00
add esp, 0x18
mov ecx, dword [esp + 0x24]
push esi
push eax
mov byte [esp + 0x74], 6
call fcn.00401230
test eax, eax
mov eax, dword [esp + 0x3c]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x6c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403792
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x403844
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x4c]
push 0x4aa924
push edx
call fcn.00401c40
push str..bak
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x84], 7
call fcn.00401d00
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403817
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40383c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0
mov edi, dword [esp + 0x14]
push str.hjjm.exe
push edi
call fcn.0045c990
add esp, 8
test eax, eax
je 0x4039e4
push str.hjjm.dll
push edi
call fcn.0045c990
add esp, 8
test eax, eax
je 0x4039e4
push str.hjtools_menu.dll
push edi
call fcn.0045c990
add esp, 8
test eax, eax
je 0x4039e4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x58]
push 0x4aa924
push edx
call fcn.00401c40
mov esi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x60]
push 0x4aa924
push ecx
mov byte [esp + 0x84], 8
call fcn.00401c40
push str..bak
push eax
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x90], 9
call fcn.00401d00
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x24
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40390f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403934
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403959
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4039dc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x60]
push 0x4aa924
push edx
call fcn.00401c40
push str..bak
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x84], 0xa
call fcn.00401d00
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4039e4
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x18], eax
jl 0x403574
jmp 0x403517
jmp fcn.00433e1f