Function at 0x4b6140
Capabilities:
Enumerate pe sections
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5af20b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov edx, dword [0x637760]
push ebx
push ebp
push esi
mov eax, dword [edx + 0xc]
push edi
test eax, eax
mov dword [esp + 0x24], ecx
je 0x4b73d8
mov eax, dword [eax + 4]
test eax, eax
je 0x4b73d8
mov cl, byte [eax + 0x23f]
test cl, cl
je 0x4b73d8
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4b73d8
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4b73d8
mov cl, byte [eax + 0x127]
test cl, cl
je 0x4b73d8
mov ebp, dword [esp + 0x48]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0x10
jge 0x4b638b
test edx, edx
je 0x4b6231
mov al, byte [edx + 0x40]
test al, al
je 0x4b6231
add edx, 0x250
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x61a3ac
push str._IF_
push 0
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637760]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c4d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x4b6285
push 0x61a3ac
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov dword [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x4b73d8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4b73d8
mov ebx, 1
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b637a
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b637a
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b6375
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b6375
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x48]
mov dword [esp + 0x3c], ebx
mov eax, dword [edx - 8]
test eax, eax
je 0x4b6364
mov al, byte [edi + 0x80]
test al, al
jne 0x4b6364
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4b6364
push 0x61a3ac
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x48], bl
call fcn.00402490
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b62a4
jmp 0x4b73d8
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push 0x615d54
push ebp
call edi
add esp, 8
test eax, eax
je 0x4b6569
mov eax, dword [0x637760]
test eax, eax
je 0x4b640f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b640f
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x61a398
push str._IF_
push 0
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637760]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c4d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x4b6463
push 0x61a398
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov dword [esp + 0x4c], 3
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x4b73d8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4b73d8
mov ebx, 4
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b6558
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b6558
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b6553
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b6553
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x48]
mov dword [esp + 0x3c], ebx
mov eax, dword [edx - 8]
test eax, eax
je 0x4b6542
mov al, byte [edi + 0x80]
test al, al
jne 0x4b6542
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4b6542
push 0x61a398
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x48], bl
call fcn.00402490
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b6482
jmp 0x4b73d8
push str.WORKING_Q
push ebp
call edi
add esp, 8
test eax, eax
je 0x4b6741
mov eax, dword [0x637760]
test eax, eax
je 0x4b65e7
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b65e7
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x61a374
push str._IF_
push 0
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637760]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c4d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x4b663b
push 0x61a374
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov dword [esp + 0x4c], 6
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x4b73d8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4b73d8
mov ebx, 7
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b6730
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b6730
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b672b
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b672b
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x48]
mov dword [esp + 0x3c], ebx
mov eax, dword [edx - 8]
test eax, eax
je 0x4b671a
mov al, byte [edi + 0x80]
test al, al
jne 0x4b671a
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4b671a
push 0x61a374
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x4c], 8
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x48], bl
call fcn.00402490
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b665a
jmp 0x4b73d8
push 0x618694
push ebp
call edi
add esp, 8
test eax, eax
je 0x4b6919
mov eax, dword [0x637760]
test eax, eax
je 0x4b67bf
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b67bf
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x61a360
push str._IF_
push 0
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637760]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c4d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x4b6813
push 0x61a360
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov dword [esp + 0x4c], 9
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x4b73d8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4b73d8
mov ebx, 0xa
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b6908
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b6908
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b6903
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b6903
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x48]
mov dword [esp + 0x3c], ebx
mov eax, dword [edx - 8]
test eax, eax
je 0x4b68f2
mov al, byte [edi + 0x80]
test al, al
jne 0x4b68f2
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4b68f2
push 0x61a360
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x4c], 0xb
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x48], bl
call fcn.00402490
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b6832
jmp 0x4b73d8
push str.PhRJZH_
push ebp
call edi
add esp, 8
test eax, eax
je 0x4b6af3
mov eax, dword [0x637760]
test eax, eax
je 0x4b6997
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b6997
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x61a340
push str._IF_
push 0
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637760]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c4d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x4b69eb
push 0x61a340
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov dword [esp + 0x4c], 0xc
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x4b73d8
mov ecx, dword [eax + 0x50]
xor ebx, ebx
test ecx, ecx
jle 0x4b73d8
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x4b6ae2
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b6ae2
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b6add
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b6add
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x48]
mov dword [esp + 0x3c], 0xd
mov eax, dword [edx - 8]
test eax, eax
je 0x4b6acc
mov al, byte [edi + 0x80]
test al, al
jne 0x4b6acc
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4b6acc
push 0x61a340
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x4c], 0xe
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x48], 0xd
call fcn.00402490
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x4b6a0b
jmp 0x4b73d8
push str.NEED_EOT
push ebp
call edi
add esp, 8
test eax, eax
je 0x4b6ccd
mov eax, dword [0x637760]
test eax, eax
je 0x4b6b71
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b6b71
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x61a320
push str._IF_
push 0
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637760]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c4d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x4b6bc5
push 0x61a320
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov dword [esp + 0x4c], 0xf
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x4b73d8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4b73d8
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b6cbc
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b6cbc
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b6cb7
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b6cb7
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x48]
mov dword [esp + 0x3c], 0x10
mov eax, dword [edx - 8]
test eax, eax
je 0x4b6ca6
mov al, byte [edi + 0x80]
test al, al
jne 0x4b6ca6
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x4b6ca6
push 0x61a320
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x4c], 0x11
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x48], 0x10
call fcn.00402490
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b6be5
jmp 0x4b73d8
cmp ebx, 0x32
jle 0x4b6cd7
mov ebx, 0x32
xor eax, eax
add ebx, 0xfffffff9
mov dword [esp + 0x2d], eax
xor edi, edi
test ebx, ebx
mov byte [esp + 0x2c], 0
mov word [esp + 0x31], ax
jle 0x4b6d82
mov cl, byte [edi + ebp]
push ecx
call fcn.004ec730
add esp, 4
test al, al
je 0x4b6d6a
mov dl, byte [edi + ebp + 1]
push edx
call fcn.004ec730
add esp, 4
test al, al
je 0x4b6d6a
mov al, byte [edi + ebp + 2]
push eax
call fcn.004ec730
add esp, 4
test al, al
je 0x4b6d6a
mov cl, byte [edi + ebp + 3]
push ecx
call fcn.004ec710
add esp, 4
test al, al
je 0x4b6d6a
mov dl, byte [edi + ebp + 4]
push edx
call fcn.004ec710
add esp, 4
test al, al
je 0x4b6d6a
mov al, byte [edi + ebp + 5]
push eax
call fcn.004ec710
add esp, 4
test al, al
je 0x4b6d6a
mov cl, byte [edi + ebp + 6]
push ecx
call fcn.004ec7b0
add esp, 4
test al, al
jne 0x4b6d71
inc edi
cmp edi, ebx
jl 0x4b6cf4
jmp 0x4b6d82
add edi, ebp
mov edx, dword [edi]
mov dword [esp + 0x2c], edx
mov ax, word [edi + 4]
mov word [esp + 0x30], ax
mov al, byte [esp + 0x2c]
test al, al
jne 0x4b6f53
mov eax, dword [0x637760]
test eax, eax
je 0x4b6df9
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b6df9
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
push 0x61a300
push str._IF_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b6e4d
push 0x61a300
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov dword [esp + 0x4c], 0x12
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x4b73d8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4b73d8
mov ebx, 0x13
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b6f42
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b6f42
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b6f3d
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b6f3d
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x48]
mov dword [esp + 0x3c], ebx
mov eax, dword [edx - 8]
test eax, eax
je 0x4b6f2c
mov al, byte [edi + 0x80]
test al, al
jne 0x4b6f2c
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4b6f2c
push 0x61a300
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x4c], 0x14
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x48], bl
call fcn.00402490
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b6e6c
jmp 0x4b73d8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
push str.REM
push ebp
mov dword [esp + 0x44], 0x15
call dword [sym.imp.MSVCRT.dll_strstr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4b7026
mov al, byte [ebp + 4]
cmp al, 0x30
jl 0x4b7026
cmp al, 0x39
jg 0x4b7026
mov al, byte [ebp + 5]
cmp al, 0x30
jl 0x4b7026
cmp al, 0x39
jg 0x4b7026
mov al, byte [ebp + 6]
cmp al, 0x30
jl 0x4b7026
cmp al, 0x39
jg 0x4b7026
mov al, byte [ebp + 7]
cmp al, 0x30
jl 0x4b7026
cmp al, 0x39
jg 0x4b7026
cmp byte [ebp + 8], 0x20
jne 0x4b7026
mov al, byte [ebp + 9]
cmp al, 0x30
jl 0x4b7026
cmp al, 0x39
jg 0x4b7026
mov al, byte [ebp + 0xa]
cmp al, 0x30
jl 0x4b7026
cmp al, 0x39
jg 0x4b7026
mov al, byte [ebp + 0xb]
cmp al, 0x30
jl 0x4b7026
cmp al, 0x39
jg 0x4b7026
mov al, byte [ebp + 0xc]
cmp al, 0x30
jl 0x4b7026
cmp al, 0x39
jg 0x4b7026
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov ebx, 0xe
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jbe 0x4b7026
mov al, byte [ebx + ebp]
cmp al, 0x20
je 0x4b7026
cmp al, 0xd
je 0x4b7026
push eax
lea ecx, [esp + 0x14]
call fcn.005942a0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ecx
jb 0x4b7000
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b70dc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov bl, 0x16
push str.SELECT__group__FROM_client_config_WHERE_account_s
push edx
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x3c], 0x17
je 0x4b7087
push str.XGSP
mov ecx, eax
call fcn.004db9f0
mov edi, eax
jmp 0x4b7089
xor edi, edi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x3c], bl
push 3
mov ebx, 1
push 3
push ebx
push eax
mov ecx, edi
call fcn.004dba80
cmp eax, ebx
jne 0x4b70c3
mov ecx, edi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x4b70c3
lea ecx, [esp + 0x1c]
push ecx
push str.group
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
test edi, edi
je 0x4b70ce
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0x15
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x48]
push eax
call fcn.0055a100
add esp, 4
lea ecx, [esp + 0x44]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0x18
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax]
push 0
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 4]
push 0
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 8]
push 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x48]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x24]
push ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [edx + 0x24]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x3c]
push ebp
push ebx
push ecx
add eax, 0x76c
push edx
push edi
push eax
push 2
lea eax, [esp + 0x50]
push str._d:INSERT_INTO_q_rec_rec_time__account__group_id__office_code__q_type__q_data__VALUES__d__02d__02d__02d:_02d:_02d___s___d___s___s___s_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x34
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637760]
mov ecx, dword [eax + 0x1d4]
call fcn.004a44f0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
mov byte [esp + 0x3c], 0x19
mov edx, dword [ecx + 0x24]
push edx
push eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x24]
push 0x61a21c
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x637760]
add esp, 0x18
test eax, eax
je 0x4b7262
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b7262
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x78]
push ecx
push str._IF_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b72b0
mov edx, dword [esp + 0x14]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x4c], 0x1a
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x48], 0x19
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x4b73ab
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4b73ab
mov bl, 0x1b
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b739f
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b739f
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b739a
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b739a
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x24]
mov byte [esp + 0x3c], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4b738c
mov al, byte [edi + 0x80]
test al, al
jne 0x4b738c
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4b738c
mov ecx, dword [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x4c], 0x1c
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x48], bl
call fcn.00402490
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0x19
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b72cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 8