Function at 0x420250
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5acf9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor esi, esi
mov dword [esp + 0x144], esi
call fcn.00420200
mov eax, dword [ebp + 0xa0]
mov cl, byte [eax + 0x645414]
test cl, cl
je 0x420515
mov ecx, dword [ebp + 0x1c]
push 1
push esi
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x63b4a0]
mov dword [esp + 0x18], edx
push 0x618528
push 0x618524
lea ecx, [esp + 0x154]
mov byte [esp + 0x14c], 1
call fcn.00587da8
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x18]
push eax
push str.SELECT_MyPic_FROM_Contact_WHERE_Name_s
push ecx
call fcn.00588507
mov edx, dword [0x64a740]
add esp, 0xc
lea ecx, [esp + 0x2c]
push edx
call fcn.00557aba
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 2
call fcn.0055b385
mov eax, dword [esp + 0x18]
push esi
push eax
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x150], 3
call fcn.00557dcf
lea ecx, [esp + 0x1c]
push esi
push ecx
push str.MyPic
lea ecx, [esp + 0x38]
call fcn.005587de
lea ecx, [esp + 0x2c]
call fcn.00557ea3
mov edx, dword [esp + 0x24]
mov ebx, dword [edx + 8]
cmp ebx, esi
jle 0x4204e2
lea eax, [ebx + 1]
push eax
call fcn.00592392
add esp, 4
cmp eax, esi
mov dword [ebp + 0x64], eax
je 0x4204e2
mov ecx, dword [ebp + 0x60]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x24]
mov dword [ebp + 0x60], esi
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x24]
mov edi, dword [ebp + 0x64]
mov esi, eax
mov ecx, dword [ecx + 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x63b4a0]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x14]
mov byte [esp + 0x144], 4
push eax
mov dword [ebp + 0x68], ebx
call fcn.0048a380
mov ecx, dword [ebp + 0xa0]
mov edx, dword [eax]
inc ecx
lea eax, [esp + 0x14]
push ecx
push edx
push str._sfilePhoneAssit_TempTP_d.jpg
push eax
mov byte [esp + 0x158], 5
call fcn.00588507
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 4
call fcn.0058df3f
push 0
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0058dcb4
mov ecx, ebp
call fcn.00420850
test al, al
je 0x4204be
lea eax, [esp + 0x14]
push eax
call fcn.0048a380
mov ecx, dword [ebp + 0xa0]
mov edx, dword [eax]
inc ecx
lea eax, [esp + 0x14]
push ecx
push edx
push str._sfilePhoneAssit_TempTP_d.bmp
push eax
mov byte [esp + 0x158], 6
call fcn.00588507
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 4
call fcn.0058df3f
call fcn.0059ea37
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 8]
push 0x2010
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
lea ecx, [ebp + 0x2d4]
mov dword [ebp + 0x60], eax
call fcn.00597127
lea esi, [ebp + 0x294]
push 5
mov ecx, esi
call fcn.0046d160
mov byte [ebp + 0x5c], 1
mov edx, dword [ebp + 0x2b0]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4204be
cmp dword [ebp + 0xd0], 1
ja 0x4204be
push 5
mov ecx, esi
call fcn.0059219e
mov eax, dword [ebp + 0x64]
push eax
call fcn.005923bb
add esp, 4
lea ecx, [esp + 0x10]
mov dword [ebp + 0x64], 0
mov byte [esp + 0x144], 3
call fcn.0058df3f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 2
call fcn.0055b3f5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x144], 1
call fcn.00557cc6
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 0
call fcn.0058df3f
lea ecx, [esp + 0x14c]
mov dword [esp + 0x144], 0xffffffff
call fcn.0058df3f
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x138
ret 4