Function at 0x402280
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed4e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x66a030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
push 0
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x4022ce
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0049b982
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4022ea
push 0x80004005
call fcn.00402df0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
call fcn.0049b982
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40231a
push 0x80004005
call fcn.00402df0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push 0x637388
call fcn.00408bd0
test eax, eax
je 0x402350
cmp dword [eax], 0
jne 0x402350
add eax, 8
lea ecx, [ebp - 0x18]
push eax
call fcn.004024c0
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
push str._STRVALUE
call fcn.00408bd0
test eax, eax
je 0x402375
cmp dword [eax], 0
jne 0x402375
add eax, 8
lea ecx, [ebp - 0x1c]
push eax
call fcn.004024c0
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push str._INTVALUR
call fcn.00408bd0
test eax, eax
je 0x402390
cmp dword [eax], 1
jne 0x402390
mov eax, dword [eax + 0xc]
jmp 0x402393
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.0049b982
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4023b2
push 0x80004005
call fcn.00402df0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push esi
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push str.SELECT_count___FROM__config__WHERE_ID___s_
push eax
call fcn.00402640
add esp, 0xc
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.00408770
test eax, eax
jne 0x4023ff
cmp dword [ebp - 0x20], eax
jle 0x4023ff
push esi
push dword [ebp - 0x10]
push edi
push str.UPDATE__config__SET_strValue___s_intValue___d_WHERE_ID___s_
jmp 0x402409
push dword [ebp - 0x10]
push edi
push esi
push str.INSERT_INTO__config___ID_strValue_intValue__VALUES___s__s__d__
lea eax, [ebp + 8]
push eax
call fcn.00402640
mov ebx, dword [ebp + 8]
add esp, 0x14
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.004086d0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x402437
mov edx, dword [ebp - 0x14]
add edx, 0x14
push edx
call fcn.004024c0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [ebp - 0x20], 0
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 1
sete byte [ebp + 0xb]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402465
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x402480
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40249c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8