Function at 0x40c280
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x48440e
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4a4720]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x38], eax
call fcn.004440b8
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40c2e2
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
xor ecx, ecx
mov dword [esp + 0x12c], ebp
xor esi, esi
cmp dword [0x4a9948], ebp
sete cl
mov dword [esp + 0x40], ecx
call fcn.004440b8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40c324
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x12c], 1
cmp dword [0x4a996c], ebp
je 0x40c3ab
cmp dword [0x4a9974], ebp
je 0x40c396
mov ecx, dword [0x4a9978]
cmp dword [ecx - 0xc], ebp
je 0x40c396
push 0x4a9978
lea ecx, [esp + 0x30]
call fcn.00407570
mov edi, dword [esp + 0x2c]
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebx, esp
call eax
cmp dword [edi + 0xc], ebp
lea ecx, [edi + 0xc]
jl 0x40c3d3
cmp eax, dword [edi]
jne 0x40c3d3
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40c40f
push 0xe
push 0x48faec
lea ecx, [esp + 0x28]
call fcn.00401da0
jmp 0x40ca81
lea edx, [esp + 0x2c]
push edx
call fcn.0040c0b0
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], ebp
jne 0x40c365
push 0xf
push 0x48fb0c
lea ecx, [esp + 0x28]
call fcn.00401da0
jmp 0x40ca81
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
cmp esi, ebp
jne 0x40c3ec
call fcn.004303e0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00461715
add esp, 0x10
add esi, 0x10
mov dword [ebx], esi
call fcn.0043d580
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x40c437
push 0xe
push 0x48fb2c
lea ecx, [esp + 0x28]
call fcn.00401da0
jmp 0x40ca7d
push 0x238
call fcn.00443d07
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x40c46c
push 0x104
lea edx, [esi + 4]
push ebp
push edx
mov dword [esi + 0x20c], ebp
mov dword [esi], ebp
call fcn.00464a00
mov ebx, esi
add esp, 0xc
mov dword [esp + 0x30], ebx
jmp 0x40c472
mov dword [esp + 0x30], ebp
mov ebx, ebp
cmp dword [edi + 0xc], 1
mov dword [esp + 0x28], ebp
jle 0x40c489
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x30]
call fcn.00401c30
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push str.des_sqlite
call fcn.0043a100
mov esi, eax
neg esi
sbb esi, esi
inc esi
xor edi, edi
cmp esi, edi
jne 0x40c4cb
push 0x10
push 0x48fb64
lea ecx, [esp + 0x28]
call fcn.00401da0
mov edx, dword [esp + 0x28]
push edx
call fcn.00443d41
add esp, 4
jmp 0x40ca36
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], edi
call fcn.0040cd00
lea ecx, [esp + 0x58]
call fcn.004511ca
mov byte [esp + 0x12c], 2
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ebx
call fcn.0040d010
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40c526
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
push str.DbGuid
push ebx
mov byte [esp + 0x138], 3
call fcn.0040cb80
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40c568
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x12c], 4
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40c59a
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
push ecx
push str.CurrDate
push ebx
mov byte [esp + 0x138], 5
call fcn.0040cb80
push edi
call fcn.00462d80
mov dword [esp + 0x74], edx
add esp, 4
lea edx, [esp + 0x6c]
push edx
mov esi, str._Y__m__d
lea edi, [esp + 0x28]
mov dword [esp + 0x70], eax
call fcn.0040e5c0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x130], 6
call fcn.00407570
mov byte [esp + 0x12c], 5
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 0x40c620
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
xor eax, eax
test ebp, ebp
setne al
test eax, eax
jne 0x40c639
push 0x80004005
call fcn.00401fc0
mov eax, dword [esp + 0x34]
mov ecx, ebp
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c666
test dx, dx
je 0x40c662
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c666
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c640
xor eax, eax
jmp 0x40c66b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setg al
test al, al
je 0x40c686
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407570
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x2c], 0
call fcn.0040cea0
mov eax, dword [esi]
test eax, eax
je 0x40c6b5
push eax
mov eax, dword [esi + 0x21c]
call eax
add esp, 4
mov dword [esi], 0
lea ecx, [esp + 0x44]
call fcn.00450200
mov byte [esp + 0x12c], 7
mov ebx, dword [esp + 0x1c]
xor eax, eax
xor ecx, ecx
mov edi, 1
mov word [esp + 0x10c], cx
mov dword [esp + 0x10e], eax
mov dword [esp + 0x112], eax
mov dword [esp + 0x116], eax
cmp dword [ebx - 4], edi
jle 0x40c706
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.00401c30
mov ebx, dword [esp + 0x1c]
cmp dword [ebp - 4], edi
jle 0x40c71c
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401c30
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10c]
push ecx
push edx
push eax
mov edx, ebx
mov ecx, ebp
call fcn.00408b10
mov edx, dword [esp + 0x58]
add esp, 0xc
lea ecx, [esp + 0x10c]
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.0045056b
cmp dword [ebx - 4], edi
jle 0x40c766
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x20]
call fcn.00401c30
mov ebx, dword [esp + 0x1c]
cmp dword [ebp - 4], edi
jle 0x40c77c
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401c30
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x10c]
push edx
push eax
push 0
mov edx, ebx
mov ecx, ebp
call fcn.00408b10
mov edx, dword [esp + 0x58]
add esp, 0xc
lea ecx, [esp + 0x10c]
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.0045056b
xor esi, esi
cmp dword [esp + 0x60], esi
jle 0x40c827
cmp dword [ebx - 4], edi
jle 0x40c7cb
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x20]
call fcn.00401c30
mov ebx, dword [esp + 0x1c]
cmp dword [ebp - 4], edi
jle 0x40c7e1
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401c30
mov ebp, dword [esp + 0x18]
test esi, esi
jl 0x40c841
cmp esi, dword [esp + 0x60]
jge 0x40c841
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + esi*4]
lea edx, [esp + 0x10c]
push edx
push ecx
push 6
mov edx, ebx
mov ecx, ebp
call fcn.00408b10
mov eax, dword [esp + 0x58]
add esp, 0xc
lea edx, [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.0045056b
add esi, edi
cmp esi, dword [esp + 0x60]
jl 0x40c7b5
call fcn.004440b8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c846
push 0x80004005
call fcn.00401fc0
call fcn.00443ffb
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
mov byte [esp + 0x12c], 8
cmp dword [0x4a996c], 0
je 0x40c936
mov ecx, dword [0x4a9970]
cmp dword [ecx - 0xc], 0
je 0x40c936
push 0x4a9970
lea ecx, [esp + 0x28]
call fcn.00407570
mov ebp, dword [esp + 0x24]
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push ebp
lea edi, [esp + 0x4c]
call fcn.00401fe0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004078f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c8c7
push 8
push 0x48fbc0
lea ecx, [esp + 0x28]
call fcn.00401da0
mov byte [esp + 0x12c], 7
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40c8e9
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x12c], 5
call fcn.004503b7
mov byte [esp + 0x12c], 4
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 0x40c922
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x12c], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x40c9e4
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x4c], 0
call fcn.00407680
lea ecx, [esp + 0x74]
mov byte [esp + 0x12c], 9
call fcn.00446c30
mov esi, eax
dec esi
neg esi
sbb esi, esi
lea ecx, [esp + 0x74]
inc esi
mov byte [esp + 0x12c], 8
call fcn.00407750
lea eax, [edi - 0x10]
mov byte [esp + 0x12c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x12c], 5
call fcn.004503b7
mov byte [esp + 0x12c], 4
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 0x40c9d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x12c], 3
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x12c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x12c], 1
call fcn.004511e1
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x40ca7b
cmp dword [ebx + 0x20c], 0
je 0x40ca72
mov eax, dword [ebx]
test eax, eax
je 0x40ca5b
mov ecx, dword [ebx + 0x21c]
push eax
call ecx
add esp, 4
mov dword [ebx], 0
mov edx, dword [ebx + 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx + 0x20c], 0
push ebx
call fcn.00443d41
add esp, 4
xor ebp, ebp
cmp esi, ebp
jne 0x40caa9
cmp dword [esp + 0x40], ebp
je 0x40ca9e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
push 0x30
push 0x48e338
push eax
call fcn.0044a077
jmp 0x40caa9
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esp + 0x12c], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cad1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x12c], 0xffffffff
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 0x40cafc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00461706
add esp, 0x11c
ret 4