Function at 0x41da70
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x49e6bb
mov eax, dword fs:[0]
push eax
mov eax, 0x3870
mov dword fs:[0], esp
call fcn.0047f090
mov eax, dword [0x4d2084]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x388c]
mov ecx, ebp
mov dword [esp + 0x3874], eax
call fcn.0041d5a0
lea ecx, [esp + 0x14]
call fcn.0041d070
mov eax, dword [esp + 0x3888]
push eax
push eax
xor ebx, ebx
lea eax, [esp + 0x7c]
push str.SELECT_Idx_MasterID_MasterName_PrenticeID_PrenticeName_UNIX_TIMESTAMP_FinishTime__CreditToAdd_FinishOnlineTime_FROM_T_MasterPrentice_WHERE_MasterID_d_OR_PrenticeID_d
push eax
mov dword [esp + 0x3890], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov byte [esp + 0x84], bl
call fcn.0047f034
add esp, 0x10
push 1
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x7c]
push edx
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
jne 0x41db18
lea ecx, [esp + 0x14]
call fcn.0041bb90
jmp 0x41dca0
mov eax, dword [esp + 0xc]
push esi
push eax
call sub.LIBMYSQL.dll_mysql_num_rows
cmp eax, ebx
jle 0x41dc58
mov dword [esp + 0x14], eax
push edi
mov ecx, dword [esp + 0x14]
push ecx
call sub.LIBMYSQL.dll_mysql_fetch_row
push ebx
push 0x4aa28a
lea ecx, [esp + 0x30]
mov esi, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004018c0
push ebx
push 0x4aa28a
lea ecx, [esp + 0x4c]
call fcn.004018c0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov edx, dword [esi]
push edx
call fcn.0047f1bd
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
push eax
call fcn.0047f1bd
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 8]
mov eax, ecx
add esp, 8
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41db96
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.004018c0
mov ecx, dword [esi + 0xc]
push ecx
call fcn.0047f1bd
mov dword [esp + 0x28], eax
mov edx, dword [esi + 0x10]
push edx
call fcn.0047f1bd
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x64]
add esp, 8
cmp eax, 1
jae 0x41dbe0
mov eax, dword [esp + 0x58]
push eax
push 1
lea ecx, [esp + 0x4c]
call fcn.00401240
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x48]
mov eax, 0x10
cmp ecx, eax
jae 0x41dbf5
lea edi, [esp + 0x48]
movsx ecx, byte [esp + 0x10]
mov byte [edi], cl
mov ch, cl
cmp dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], 1
jae 0x41dc14
lea eax, [esp + 0x48]
mov byte [eax + 1], bl
mov eax, dword [esi + 0x14]
push eax
call fcn.0047f1bd
mov dword [esp + 0x64], eax
mov ecx, dword [esi + 0x18]
push ecx
call fcn.0047f1bd
mov dword [esp + 0x70], eax
mov edx, dword [esi + 0x1c]
push edx
call fcn.0047f1bd
mov dword [esp + 0x70], eax
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.0041d9e0
dec dword [esp + 0x18]
jne 0x41db30
pop edi
mov ecx, dword [esp + 0x10]
push ecx
call sub.LIBMYSQL.dll_mysql_free_result
mov eax, dword [esp + 0x58]
mov esi, 0x10
cmp eax, esi
jb 0x41dc7c
mov edx, dword [esp + 0x44]
push edx
call fcn.0047e60d
add esp, 4
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
pop esi
jb 0x41dca0
mov eax, dword [esp + 0x24]
push eax
call fcn.0047e60d
add esp, 4
mov ecx, dword [esp + 0x3878]
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3870]
pop ebx
xor ecx, esp
call fcn.0047ece2
add esp, 0x387c
ret 8