Function at 0x52f850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, edx
mov dword [esp + 8], ecx
push ebx
push esi
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x30], 0
push edi
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x34], 0
jle 0x52fd6a
lea esi, [ecx + 0x24]
lea ebx, [eax + 0x78]
nop
cmp dword [esi], 0
jne 0x52fd6a
mov eax, dword [ebx - 0x28]
test eax, eax
je 0x52fd55
cmp dword [ebx - 0x1c], 0
jne 0x52f8c0
mov dword [eax + 8], 0
mov eax, dword [ebx - 0x28]
mov dword [eax + 4], 0
jmp 0x52fd55
mov eax, dword [eax]
mov edx, dword [ebx]
mov dword [esp + 0x1c], edx
cdq
mov edi, eax
mov dword [esp + 0x24], 0
mov eax, dword [ebx - 4]
cdq
shl edi, 5
add eax, 0
mov dword [esp + 0x3c], 0
adc edx, edi
mov dword [esp + 0x40], edi
push edx
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
call fcn.00529c90
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x52fd4d
mov eax, dword [esp + 0x1c]
cmp eax, dword [edi + 8]
jle 0x52f91f
mov dword [esi], 0x10b
jmp 0x52fcf5
mov eax, dword [edi + 4]
xor edx, edx
mov dword [esp + 0x48], edx
cmp eax, dword [esp + 0x4c]
jbe 0x52f941
push eax
lea edx, [esp + 0x48]
mov ecx, esi
call fcn.00521860
mov edx, dword [esp + 0x4c]
add esp, 4
lea eax, [edx + 4]
cmp eax, dword [esp + 0x4c]
jbe 0x52f961
push eax
lea edx, [esp + 0x48]
mov ecx, esi
call fcn.00521860
add esp, 4
test eax, eax
jne 0x52f973
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
mov dword [eax + edx], ecx
add edx, 4
mov dword [esp + 0x48], edx
mov eax, dword [ebx + 0x20]
mov ecx, esi
cdq
push edx
push eax
lea edx, [esp + 0x4c]
call fcn.005218f0
mov eax, dword [ebx + 0x1c]
add esp, 8
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], eax
test eax, eax
je 0x52f9df
mov edi, dword [esp + 0x48]
lea ecx, [eax + edi]
cmp ecx, dword [esp + 0x4c]
jbe 0x52f9c1
push ecx
lea edx, [esp + 0x48]
mov ecx, esi
call fcn.00521860
add esp, 4
test eax, eax
jne 0x52f9df
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x48]
push dword [esp + 0x3c]
add eax, edi
push eax
call fcn.00570750
add esp, 0xc
add edi, dword [esp + 0x28]
mov dword [esp + 0x48], edi
jmp 0x52f9e3
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 8]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
je 0x52fa3e
lea ecx, [eax + edi]
cmp ecx, dword [esp + 0x4c]
jbe 0x52fa22
push ecx
lea edx, [esp + 0x48]
mov ecx, esi
call fcn.00521860
mov edi, dword [esp + 0x4c]
add esp, 4
test eax, eax
jne 0x52fa3e
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x48]
push dword [esp + 0x3c]
add eax, edi
push eax
call fcn.00570750
add esp, 0xc
add edi, dword [esp + 0x28]
mov dword [esp + 0x48], edi
cmp dword [esi], 0
jne 0x52fa56
mov ecx, dword [esp + 0x44]
mov eax, edi
shr eax, 8
mov byte [ecx + 2], al
mov al, byte [esp + 0x48]
mov byte [ecx + 3], al
lea eax, [edi + 9]
cmp eax, dword [esp + 0x4c]
jbe 0x52fa76
push eax
lea edx, [esp + 0x48]
mov ecx, esi
call fcn.00521860
mov edi, dword [esp + 0x4c]
add esp, 4
test eax, eax
jne 0x52fa83
mov eax, dword [esp + 0x44]
mov byte [eax + edi], 4
inc edi
mov dword [esp + 0x48], edi
mov eax, dword [ebx - 0x20]
cmp eax, dword [ebx - 4]
jne 0x52fb3d
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 8]
cmp dword [ebx + 8], edx
jge 0x52fb3d
mov ecx, dword [ebx + 4]
cmp ecx, dword [eax + 4]
jg 0x52fb3d
sub edx, dword [ebx + 8]
mov eax, edx
cdq
mov ecx, eax
mov esi, edx
mov eax, edi
cdq
sub eax, ecx
sbb edx, esi
mov esi, dword [esp + 0x14]
sub eax, 5
sbb edx, 0
add esi, 0x24
push edx
push eax
lea edx, [esp + 0x4c]
mov ecx, esi
call fcn.005218f0
mov ecx, dword [esp + 0x20]
add esp, 8
mov edx, dword [ecx]
add edx, dword [ebx + 4]
mov ecx, dword [ecx + 4]
sub ecx, dword [ebx + 4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], ecx
je 0x52fb39
mov edi, dword [esp + 0x48]
lea eax, [ecx + edi]
cmp eax, dword [esp + 0x4c]
jbe 0x52fb1e
push eax
lea edx, [esp + 0x48]
mov ecx, esi
call fcn.00521860
add esp, 4
test eax, eax
jne 0x52fb39
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
push ecx
push edx
add eax, edi
push eax
call fcn.00570750
add esp, 0xc
add edi, dword [esp + 0x28]
mov dword [esp + 0x48], edi
jmp 0x52fb3d
mov edi, dword [esp + 0x48]
mov ecx, dword [ebx - 0x28]
mov eax, dword [ebx - 4]
mov dword [ecx + 4], eax
cmp dword [esi], 0
jne 0x52fcf1
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x30], 0
lea eax, [ecx + 0x30]
mov dword [esp + 0x1c], eax
jne 0x52fb8e
mov eax, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push str.DELETE_FROM__q._q_data_WHERE_id___AND_id__
call fcn.0043e130
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x14]
push eax
call fcn.00529d30
add esp, 4
test eax, eax
jne 0x52fbda
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add edx, 1
adc ecx, 0
push ecx
push edx
push 1
push dword [eax]
call fcn.00467fa0
push dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
push dword [esp + 0x44]
push 2
push dword [eax]
call fcn.00467fa0
mov eax, dword [esp + 0x3c]
push dword [eax]
call fcn.004669b0
mov eax, dword [esp + 0x40]
add esp, 0x24
push dword [eax]
call fcn.00465900
add esp, 4
mov dword [esi], eax
cmp dword [esi], 0
jne 0x52fcf1
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x2c], 0
lea eax, [ecx + 0x2c]
mov dword [esp + 0x1c], eax
jne 0x52fc27
mov eax, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push str.REPLACE_INTO__q._q_data_id__block__VALUES_____
call fcn.0043e130
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x14]
push eax
call fcn.00529d30
add esp, 4
cmp dword [esi], 0
jne 0x52fcf1
mov eax, dword [esp + 0x1c]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push 1
push dword [eax]
call fcn.00467fa0
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov edx, 1
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x28], eax
call fcn.00467b40
test eax, eax
jne 0x52fcb2
cmp dword [esp + 0x44], eax
je 0x52fc9b
mov ecx, dword [esp + 0x28]
push eax
push eax
mov eax, edi
mov ecx, dword [ecx + 0x64]
cdq
add ecx, 0x28
push edx
mov edx, dword [esp + 0x50]
push eax
call fcn.0045fb80
add esp, 0x10
mov dword [esp + 0x40], eax
test eax, eax
je 0x52fc9b
mov edi, dword [esp + 0x28]
mov edx, eax
mov ecx, dword [edi]
mov dword [ecx + 0x40], eax
call fcn.0043ee60
mov ecx, dword [edi]
mov edx, dword [esp + 0x40]
call fcn.0043bb70
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x52fcb2
push eax
call dword [0x5dac88]
add esp, 4
mov edi, dword [esp + 0x1c]
push dword [edi]
call fcn.004669b0
add esp, 4
push dword [edi]
call fcn.00465900
mov edi, dword [edi]
add esp, 4
mov edx, 1
mov dword [esi], eax
mov ecx, edi
call fcn.00467b40
test eax, eax
jne 0x52fcf1
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x52fcf1
push eax
call dword [0x5dac88]
add esp, 4
mov edi, dword [esp + 0x18]
cmp dword [0x5dac30], 0
je 0x52fd43
mov eax, dword [0x5dfe08]
test eax, eax
je 0x52fd11
push eax
call dword [0x5dac80]
add esp, 4
push edi
call dword [0x5dac5c]
sub dword [0x5dfca8], eax
add esp, 4
dec dword [0x5dfccc]
push edi
call dword [0x5dac54]
mov eax, dword [0x5dfe08]
add esp, 4
test eax, eax
je 0x52fd4d
push eax
call dword [0x5dac88]
jmp 0x52fd4a
push edi
call dword [0x5dac54]
add esp, 4
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
add ebx, 0x60
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [edx + 0x30]
jl 0x52f890
lea ecx, [esp + 0x44]
call fcn.00521aa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret