Function at 0x418930
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x4949b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x4be818]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], eax
mov ebx, dword [esi + 0x84]
test ebx, ebx
mov dword [esp + 0x38], 0
je 0x418cee
mov edi, dword [esp + 0x40]
lea edx, [esp + 0x10]
mov ecx, dword [edi + 0x20]
push ecx
push str.SELECT__FROM_FarmStatus_WHERE_UserId_d
push edx
call fcn.004827a3
add esp, 0xc
lea eax, [esi + 0x638]
lea edx, [esp + 0x10]
push 1
push 2
push 3
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
call fcn.004841a8
lea ebp, [esi + 0x644]
mov ecx, ebp
call fcn.00401990
test eax, eax
jne 0x4189bd
xor ebx, ebx
jmp 0x418cee
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, ebp
mov byte [esp + 0x38], 1
call fcn.004022a0
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
mov dword [esp + 0x14], ebx
je 0x418ccd
mov ecx, dword [0x4be818]
mov dword [esp + 0x40], ecx
mov eax, dword [edi + 0x584]
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x28], esp
push eax
push edx
mov ecx, esi
mov byte [esp + 0x50], 2
call fcn.00417e30
push ecx
mov byte [esp + 0x4c], 3
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4ba9b8
call fcn.004844a1
mov ecx, ebp
mov byte [esp + 0x4c], 2
call fcn.00402030
mov edx, dword [edi + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
push ecx
mov ecx, esi
call fcn.00417e30
push ecx
mov byte [esp + 0x4c], 4
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ba9c4
call fcn.004844a1
mov ecx, ebp
mov byte [esp + 0x4c], 2
call fcn.00402030
mov ecx, dword [edi + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x2c], esp
push ecx
push eax
mov ecx, esi
call fcn.00417e30
push ecx
mov byte [esp + 0x4c], 5
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ba9f0
call fcn.004844a1
mov ecx, ebp
mov byte [esp + 0x4c], 2
call fcn.00402030
sub esp, 0x10
lea edx, [edi + 0x54]
mov ebx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, esi
mov eax, esp
mov dword [esp + 0x2c], esp
push edx
push eax
call fcn.00418600
push ebx
mov ecx, esi
call fcn.00417d60
push ecx
mov byte [esp + 0x4c], 6
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ba984
call fcn.004844a1
mov bl, 2
mov byte [esp + 0x4c], bl
mov ecx, ebp
call fcn.00402030
mov edx, dword [edi + 0x580]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
push ecx
mov ecx, esi
call fcn.00417e30
push ecx
mov byte [esp + 0x4c], 7
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ba9ac
call fcn.004844a1
mov ecx, ebp
mov byte [esp + 0x4c], bl
call fcn.00402030
mov eax, dword [edi + 0x578]
mov ecx, dword [edi + 0x574]
mov edx, dword [edi + 0x570]
push eax
mov eax, dword [edi + 0x56c]
push ecx
mov ecx, dword [edi + 0x568]
push edx
mov edx, dword [edi + 0x564]
push eax
push ecx
push edx
lea eax, [esp + 0x58]
push str._d_d_d_d_d_d
push eax
call fcn.004827a3
add esp, 0x10
lea edx, [esp + 0x50]
mov ebx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004841a8
push ebx
mov ecx, esi
call fcn.00417d60
push ecx
mov byte [esp + 0x4c], 8
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ba9a0
call fcn.004844a1
mov ecx, ebp
mov byte [esp + 0x4c], 2
call fcn.00402030
sub esp, 0x10
lea eax, [edi + 0x84]
mov ebx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push ecx
mov ecx, esi
call fcn.00418600
push ebx
mov ecx, esi
call fcn.00417d60
push ecx
mov byte [esp + 0x4c], 9
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ba954
call fcn.004844a1
mov byte [esp + 0x4c], 2
mov ecx, ebp
call fcn.00402030
sub esp, 0x10
lea edx, [edi + 0x5c]
mov ebx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, esi
mov eax, esp
mov dword [esp + 0x2c], esp
push edx
push eax
call fcn.00418600
push ebx
mov ecx, esi
call fcn.00417d60
push ecx
mov byte [esp + 0x4c], 0xa
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ba978
call fcn.004844a1
mov ecx, ebp
mov byte [esp + 0x4c], 2
call fcn.00402030
sub esp, 0x10
lea ecx, [edi + 0x60]
mov ebx, esp
mov dword [esp + 0x2c], esp
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push ecx
push edx
mov ecx, esi
call fcn.00418600
push ebx
mov ecx, esi
call fcn.00417d60
push ecx
mov byte [esp + 0x4c], 0xb
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ba970
call fcn.004844a1
mov bl, 2
mov ecx, ebp
mov byte [esp + 0x4c], bl
call fcn.00402030
sub esp, 0x10
lea eax, [edi + 0x6c]
mov edi, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push ecx
mov ecx, esi
call fcn.00418600
push edi
mov ecx, esi
call fcn.00417d60
push ecx
mov byte [esp + 0x4c], 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ba964
call fcn.004844a1
mov ecx, ebp
mov byte [esp + 0x4c], bl
call fcn.00402030
mov ecx, ebp
call fcn.00402410
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call fcn.00484433
mov ebx, dword [esp + 0x14]
mov ecx, ebp
call fcn.004025e0
lea edx, [esp + 0x20]
mov byte [esp + 0x38], 0
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x418cee
push eax
call fcn.0047b570
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.00484433
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 4