Function at 0x406480
Capabilities:
Access peb ldr_data
Check if file exists
Check os version
Create directory
Create process on windows
Delete file
Get common file path
Move file
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4505d8
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x46414c]
xor eax, esp
mov dword [esp + 0x4e0], eax
push ebx
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x4f8]
mov dword fs:[0], eax
mov eax, dword [0x46ecec]
mov edi, ecx
mov esi, edx
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x46ecec
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x500], ebx
cmp esi, ebx
jne 0x4064f3
xor eax, eax
jmp 0x40650f
mov eax, esi
lea edx, [eax + 2]
jmp 0x406500
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406500
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x34]
call fcn.004053c0
mov ebx, dword [esp + 0x30]
push ebx
push 0xffffffffffffffff
push str.SType
push 0x45b7b4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xffffffff
jne 0x406561
mov dword [esp + 0x500], eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40655a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x406a4d
xor ebx, ebx
cmp eax, ebx
jne 0x406571
mov dword [esp + 0x28], 1
jmp 0x40657a
cmp eax, 1
jne 0x40657a
mov dword [esp + 0x28], ebx
push esi
push 0x45b7b0
push 0x45b684
lea ecx, [esp + 0x48]
push 0x45b7b4
push ecx
mov dword [esp + 0x34], ebx
call fcn.00414180
add esp, 0x14
push esi
push 0x45b7b0
push 0x45b7ac
lea edx, [esp + 0x4c]
push 0x45b7b4
push edx
mov byte [esp + 0x514], 1
call fcn.00414180
add esp, 0x14
mov byte [esp + 0x500], 2
mov eax, dword [edi]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call edx
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
mov eax, dword [esp + 0x14]
setg bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4068a8
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x45b608
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x44]
mov byte [esp + 0x508], 3
push edx
lea ebx, [esp + 0x30]
mov dword [esp + 0x30], 0
call fcn.00404b40
lea edi, [esp + 0x1c]
mov byte [esp + 0x500], 4
call fcn.004050a0
mov byte [esp + 0x500], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40667e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
mov ecx, 0x45b7b0
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4066b6
test dx, dx
je 0x4066b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4066b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x406690
xor eax, eax
jmp 0x4066bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x40687d
lea esi, [esp + 0x14]
call fcn.00423620
mov byte [esp + 0x500], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x40672b
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40671a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40671a
call fcn.00401850
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x406711
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x1c], edi
jmp 0x40672b
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.004053c0
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x500], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x34]
push eax
call edx
mov byte [esp + 0x500], 6
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40685e
push eax
push edi
call fcn.004248c8
add esp, 8
test eax, eax
mov byte [esp + 0x500], 3
mov eax, dword [esp + 0x34]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x406868
push 0x45b608
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
lea ebx, [esp + 0x30]
call fcn.00404b40
mov byte [esp + 0x500], 7
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x40682d
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40681c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40681c
call fcn.00401850
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x406813
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x1c], edi
jmp 0x40682d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.004053c0
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x500], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406682
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406682
push 0x80004005
call fcn.00401960
xor ecx, ecx
cmp dword [esp + 0x28], ecx
mov dword [esp + 0x20], 1
sete cl
mov dword [esp + 0x28], ecx
add edi, 0xfffffff0
mov byte [esp + 0x500], 2
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4068a1
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
cmp dword [esp + 0x20], 0
jne 0x4068d2
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00414270
add esp, 8
test eax, eax
je 0x4068d2
xor edx, edx
cmp dword [esp + 0x28], edx
sete dl
mov dword [esp + 0x28], edx
cmp dword [esp + 0x28], 0
je 0x4069ce
lea eax, [esp + 0x34]
xor ebx, ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4069ce
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x500], 8
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push 0x45b7b0
cmp dword [esp + 0x3c], ebx
je 0x406951
push str.Gurl64
push 0x45b7b4
push edx
call fcn.00414180
add esp, 0x14
mov byte [esp + 0x500], 9
jmp 0x40696c
push str.Gurl
push 0x45b7b4
push edx
call fcn.00414180
add esp, 0x14
mov byte [esp + 0x500], 0xa
lea edi, [esp + 0x1c]
call fcn.004050a0
mov byte [esp + 0x500], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40699d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
cmp dword [edi - 0xc], ebx
jne 0x406a71
lea eax, [edi - 0x10]
mov byte [esp + 0x500], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x500], 1
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x500], 0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x500], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x4f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4e0]
xor ecx, esp
call fcn.0042404d
mov esp, ebp
pop ebp
ret
lea esi, [esp + 0x14]
call fcn.00423620
lea edi, [esp + 0x1c]
mov byte [esp + 0x500], 0xb
call fcn.004050a0
mov byte [esp + 0x500], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ab3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2e4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0xdc]
push edx
push ebx
push 0x45b7d8
lea eax, [esp + 0x2f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x500], 0xc
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x406b27
mov ecx, 0x104
lea eax, [esp + 0x18]
call fcn.00401680
mov esi, dword [esp + 0x18]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004240ad
add esp, 8
cmp eax, ebx
jl 0x407383
cmp eax, dword [esi - 8]
jg 0x407383
push 1
push 0x45b7e0
lea edx, [esp + 0x20]
xor ecx, ecx
mov dword [esi - 0xc], eax
push edx
mov word [esi + eax*2], cx
call fcn.004016d0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], eax
lea ecx, [esp + 0xa0]
xor eax, eax
push ecx
lea ecx, [eax + 2]
lea edx, [eax + 5]
call fcn.0041de40
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x46ecec
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
add edi, 0xfffffff0
mov byte [esp + 0x500], 0xd
cmp dword [esp + 0x24], edi
je 0x406c0a
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x406bfd
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x406bfd
mov eax, ecx
call fcn.00401850
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x406bf0
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x18]
jmp 0x406c0a
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x24]
call fcn.004053c0
lea eax, [esp + 0xa0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406c14
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004016d0
push 1
push 0x45b7e0
lea eax, [esp + 0x28]
push eax
call fcn.004016d0
mov edi, dword [esp + 0x20]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406c90
lea eax, [edi - 0x10]
mov byte [esp + 0x500], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x406b7e
jmp 0x406d09
push 6
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [esp + 0x24]
lea esi, [edi - 0x10]
cmp esi, ebx
je 0x406ce8
cmp dword [ebx + 0xc], 0
jl 0x406cdb
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x406cdb
mov eax, esi
call fcn.00401850
mov edi, eax
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x406cd2
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x406ce8
mov ebx, dword [edi - 0xc]
push edi
lea eax, [esp + 0x1c]
call fcn.004053c0
mov byte [esp + 0x500], 0xc
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406d09
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x406d89
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0xdc]
push ecx
mov dword [esp + 0x18], 0
call ebx
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0xf4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x406d89
cmp edi, 0xffffffff
je 0x406d89
push ecx
mov eax, esp
mov dword [esp + 0x3c], esp
push eax
mov ecx, 0x45b7b0
call fcn.00404a50
push edi
push 1
push 0
push esi
lea ecx, [esp + 0x28]
xor edx, edx
call fcn.0041d8e0
add esp, 0x14
push edi
test eax, eax
je 0x406db9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], 0
jne 0x406dcb
mov byte [esp + 0x500], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406db1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x4069ad
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xdc]
push ecx
call ebx
jmp 0x406d89
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x500], 0xe
mov esi, dword [esp + 0x2c]
mov edx, dword [esi]
mov edx, dword [edx]
push ecx
mov eax, esp
mov dword [esp + 0x3c], esp
push eax
mov ecx, esi
call edx
lea eax, [esp + 0x18]
push eax
call fcn.004060f0
add esp, 8
mov byte [esp + 0x500], 0xf
mov ebx, dword [eax]
lea eax, [esp + 0x20]
call fcn.00408bc0
mov byte [esp + 0x500], 0xe
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004049c0
mov edi, eax
mov byte [esp + 0x500], 0x10
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x406e73
mov edx, dword [eax + 4]
push edx
push edi
call fcn.00405d70
mov edi, dword [edi]
mov ebx, dword [esp + 0x18]
push edi
push 1
lea eax, [esp + 0xe4]
push ebx
push eax
call fcn.0041df30
mov edi, eax
mov byte [esp + 0x510], 0xe
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406eb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x406f1b
mov byte [esp + 0x500], 0xc
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ee3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x500], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x500], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
jmp 0x4069b5
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, 0x45b7e4
call fcn.00408da0
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x406fa0
mov byte [esp + 0x500], 0xc
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x500], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x406eee
lea ecx, [esp + 0xb4]
xor eax, eax
push ecx
lea ecx, [eax + 3]
lea edx, [eax + 5]
call fcn.0041de40
add esp, 4
push str..exe
lea edx, [esp + 0xb8]
push 0x14
push edx
call fcn.00424b56
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
lea ebx, [esp + 0xbc]
call fcn.00408da0
mov edi, eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, 0x45b7e4
mov byte [esp + 0x510], 0x11
call fcn.00408da0
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0x10
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407037
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x500], 0xe
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40705f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x406f64
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov bl, 0x12
mov byte [esp + 0x500], bl
mov edx, dword [esi]
mov edx, dword [edx]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call edx
mov byte [esp + 0x500], 0x13
mov eax, dword [eax]
push eax
push str.http:__ini.58qz.com_58wangwei__s.ini
lea edi, [esp + 0x2c]
call fcn.004018c0
mov byte [esp + 0x508], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.log.dat
call fcn.00408da0
mov byte [esp + 0x508], 0x14
mov edi, dword [eax]
mov eax, dword [esp + 0x2c]
push eax
xor eax, eax
call fcn.0041dc70
add esp, 0xc
test eax, eax
mov byte [esp + 0x500], 0x12
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407131
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x407166
mov byte [esp + 0x500], 0xe
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406f64
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, str.log.dat
call fcn.00408da0
add esp, 8
mov edi, eax
mov byte [esp + 0x500], 0x15
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call edx
mov edi, dword [edi]
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
push eax
push str.UserName
push str.Config
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4071cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x500], 0x12
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4071f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.log.dat
call fcn.00408da0
mov eax, dword [eax]
add esp, 8
push eax
push str.58wangwei
push str.AgName
push str.Config
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40723f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ebx, [esp + 0xbc]
call fcn.00408da0
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x500], 0x16
call fcn.004050a0
mov bl, 0x12
mov byte [esp + 0x500], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407292
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44
lea ecx, [esp + 0x58]
push 0
push ecx
call fcn.00426020
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x46ecec
mov dword [esp + 0x54], 0x44
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x500], 0x17
cmp dword [edi - 4], 1
jle 0x4072e2
mov ecx, dword [edi - 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004017a0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
add edi, 0xfffffff0
mov dword [esp + 0x28], eax
mov byte [esp + 0x500], bl
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40732b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [esp + 0x500], 0xe
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407353
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x500], 0xc
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40737b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x406ee6
push 0x80070057
call fcn.00401960
int3