Function at 0x511220
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5bf95d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x641030]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x10], ecx
je 0x5112aa
cmp byte [eax + 0x40], bl
je 0x5112aa
add eax, 0x250
push eax
call ebp
push ebx
push 0x62d6ac
push 0x6145d8
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x641030]
push str.runtime
push 0x60c77c
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x62d6ac
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x58], ebx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x5c], 1
mov ecx, esp
mov dword [esp + 0x44], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x60], 2
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x60c778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
or edi, 0xffffffff
mov dword [esp + 0x60], edi
call fcn.00459390
push 0x30
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov dword [esp + 0x50], 3
je 0x511333
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CSslClientSocket::constructor_void_
mov esi, eax
jmp 0x511335
xor esi, esi
mov edx, dword [esi]
push 0x1bb
push str.cs03.eterm.com.cn
mov ecx, esi
mov dword [esp + 0x58], edi
call dword [edx + 0x4c]
cmp eax, 1
jne 0x51135d
mov eax, dword [esi]
push 0xa
push str.1234567890
mov ecx, esi
call dword [eax + 0x48]
cmp esi, ebx
je 0x51136a
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [0x641030]
cmp eax, ebx
je 0x5113cc
cmp byte [eax + 0x40], bl
je 0x5113cc
add eax, 0x250
push eax
call ebp
push ebx
push 0x62d678
push 0x6145d8
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x641030]
push str.runtime
push 0x60c77c
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x62d678
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x58], 4
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x5c], 5
mov ecx, esp
mov dword [esp + 0x44], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x60], 6
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x60c778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov dword [esp + 0x60], edi
call fcn.00459390
call fcn.0044c9d0
cmp byte [eax + 0x218], bl
je 0x51150e
mov eax, dword [0x641030]
cmp eax, ebx
je 0x5114a4
cmp byte [eax + 0x40], bl
je 0x5114a4
add eax, 0x250
push eax
call ebp
push ebx
push 0x62d65c
push 0x6145d8
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x641030]
push str.runtime
push 0x60c77c
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x62d65c
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x58], 7
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x5c], 8
mov ecx, esp
mov dword [esp + 0x44], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x60], 9
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x60c778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov dword [esp + 0x60], edi
call fcn.00459390
jmp 0x5121a8
mov ecx, dword [esp + 0x10]
call fcn.005121c0
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov dword [esp + 0x50], 0xa
je 0x511541
push str.XGSP
mov ecx, eax
call fcn.004ddd00
mov edi, eax
jmp 0x511543
xor edi, edi
or esi, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], edi
mov dword [esp + 0x50], esi
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x641030]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x54], 0xb
call fcn.00597eb0
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push str.select__from__s_where__delflag_0_and__disable_0_and__group_disable_0_order_by__group_id_
push edx
mov byte [esp + 0x5c], 0xc
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x50], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push 3
push 3
push 1
push eax
mov ecx, edi
call fcn.004ddd90
cmp eax, ebx
jne 0x5116a4
cmp edi, ebx
je 0x5115bd
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [0x641030]
cmp eax, ebx
je 0x51161f
cmp byte [eax + 0x40], bl
je 0x51161f
add eax, 0x250
push eax
call ebp
push ebx
push str.ETerm
push 0x60c790
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x641030]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.ETerm
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x58], 0xd
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x60c790
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x5c], 0xe
mov ecx, esp
mov dword [esp + 0x44], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x60], 0xf
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x6192e0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x60], 0xb
call fcn.00459390
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], esi
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0x10
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [esp + 0x50], 0x11
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x511c79
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0x28]
mov eax, dword [edx + 4]
cmp ecx, dword [eax + 0x228]
jge 0x51217b
push 0xc60
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0x50], 0x12
je 0x511716
mov ecx, eax
call fcn.004f90f0
mov ebp, eax
jmp 0x511718
xor ebp, ebp
push pe_nt_image_headers32
mov dword [esp + 0x38], ebp
mov byte [esp + 0x54], 0x11
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
cmp esi, ebx
mov byte [esp + 0x50], 0x13
je 0x5119ef
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 4]
mov byte [esp + 0x50], 0x14
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 8]
mov byte [esp + 0x50], 0x15
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xc]
mov byte [esp + 0x50], 0x16
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x18]
mov byte [esp + 0x50], 0x17
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x1c]
mov byte [esp + 0x50], 0x18
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x20]
mov byte [esp + 0x50], 0x19
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x24]
mov byte [esp + 0x50], 0x1a
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x28]
mov byte [esp + 0x50], 0x1b
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x2c]
mov byte [esp + 0x50], 0x1c
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x44]
mov byte [esp + 0x50], 0x1d
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x48]
mov byte [esp + 0x50], 0x1e
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x4c]
mov byte [esp + 0x50], 0x1f
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x60]
mov byte [esp + 0x50], 0x20
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x64]
mov byte [esp + 0x50], 0x21
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x68]
mov byte [esp + 0x50], 0x22
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x6c]
mov byte [esp + 0x50], 0x23
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x70]
mov byte [esp + 0x50], 0x24
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x74]
mov byte [esp + 0x50], 0x25
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x78]
mov byte [esp + 0x50], 0x26
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x50], 0x27
lea ecx, [esi + 0x8c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xa0]
mov byte [esp + 0x50], 0x28
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xa4]
mov byte [esp + 0x50], 0x29
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xac]
mov byte [esp + 0x50], 0x2a
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xb0]
mov byte [esp + 0x50], 0x2b
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xd4]
mov byte [esp + 0x50], 0x2c
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xe0]
mov byte [esp + 0x50], 0x2d
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xfc]
mov byte [esp + 0x50], 0x2e
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x108]
mov byte [esp + 0x50], 0x2f
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x110]
mov byte [esp + 0x50], 0x30
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x118]
mov byte [esp + 0x50], 0x31
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x120]
mov byte [esp + 0x50], 0x32
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x124]
mov byte [esp + 0x50], 0x33
call sub.MFC42.DLL_CString::CString_1
mov dword [esi + 0xb8], 0xf
mov dword [esi + 0x54], ebx
mov dword [esi + 0xbc], 0x12c
mov byte [esi + 0x58], bl
mov byte [esi + 0x5a], bl
mov byte [esi + 0x5b], bl
mov byte [esi + 0x5c], bl
mov byte [esi + 0x59], bl
mov byte [esi + 0x9c], bl
mov byte [esi + 0x9d], bl
mov byte [esi + 0x9e], bl
mov byte [esi + 0x90], bl
mov byte [esi + 0x91], bl
mov byte [esi + 0x92], bl
mov byte [esi + 0xcc], bl
mov byte [esi + 0xcd], bl
mov byte [esi + 0xce], bl
mov byte [esi + 0xc4], bl
mov dword [esi + 0x98], ebx
mov byte [esi + 0xe4], bl
mov dword [esi + 0xc0], ebx
mov byte [esi + 0xcf], bl
mov byte [esi + 0xd0], bl
mov byte [esi + 0xe5], bl
mov byte [esi + 0xd1], bl
mov byte [esi + 0xd8], bl
mov dword [esi + 0xdc], 1
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov byte [esi + 0xf0], bl
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], 0x1e
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x100], 5
mov byte [esi + 0x104], bl
mov byte [esi + 0x10c], bl
mov byte [esi + 0x14], bl
jmp 0x5119f1
xor esi, esi
mov ecx, dword [esp + 0x10]
push ebp
push edi
mov byte [esp + 0x58], 0x11
mov dword [ebp + 0x74], esi
call fcn.00510660
cmp al, 1
jne 0x511c50
mov eax, dword [ebp + 0x74]
mov dl, byte [eax + 0x14]
mov ecx, dword [eax + 0x10]
push edx
push ecx
push ebx
lea ecx, [eax + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, ebp
call sym.ETermProxy.exe_public:_void___thiscall_CClientObject::SetServer_char___int__bool_
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x511afc
push 0x2c
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x44], edi
cmp edi, ebx
mov byte [esp + 0x50], 0x34
je 0x511a86
lea ecx, [edi + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov dword [edi + 0x18], 0x5d74d0
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x20], ebx
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [edi + 0xc], bl
jmp 0x511a88
xor edi, edi
mov eax, dword [ebp + 0x74]
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
mov byte [esp + 0x54], 0x11
mov ecx, dword [eax + 0x54]
lea ebp, [edx + 0x2e8]
mov dword [edi + 8], ecx
mov ecx, ebp
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
inc eax
push eax
call fcn.005343d0
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x24]
push ecx
lea ebp, [esi + 0x20]
mov dword [eax + ecx*4], edi
mov edx, dword [esi + 0xb4]
mov ecx, esp
mov dword [esp + 0x48], esp
push ebp
mov dword [edi], edx
call sub.MFC42.DLL_CString::CString_2
call fcn.004ec3c0
add esp, 4
add esi, 0xd4
lea ecx, [edi + 0x14]
mov dword [edi + 4], eax
push esi
call sub.MFC42.DLL_CString::operator_1
push ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov edi, ecx
mov dword [esp + 0x44], edi
lea ebp, [edi + 1]
cmp ebp, ebx
jne 0x511b32
cmp eax, ebx
je 0x511b27
push eax
mov dword [esp + 0x48], ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
jmp 0x511c37
cmp eax, ebx
jne 0x511b5b
lea eax, [ebp*4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 0x1c], eax
push ebp
push eax
call fcn.00556850
mov dword [esi + 0x24], ebp
mov dword [esi + 0x20], ebp
jmp 0x511c37
mov edx, dword [esi + 0x24]
cmp ebp, edx
mov dword [esp + 0x24], edx
jg 0x511b90
cmp ecx, ebp
jge 0x511b80
mov edx, ebp
lea eax, [eax + ecx*4]
sub edx, ecx
push edx
push eax
call fcn.00556850
mov dword [esi + 0x20], ebp
jmp 0x511c37
jle 0x511b88
sub ecx, ebp
mov dword [esp + 0x44], ecx
mov dword [esi + 0x20], ebp
jmp 0x511c37
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x511bba
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x511bae
mov eax, 4
jmp 0x511bba
cmp eax, 0x400
jle 0x511bba
mov eax, 0x400
mov ecx, dword [esp + 0x24]
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x24], eax
jl 0x511bcc
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x24]
lea eax, [edx*4]
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x20]
mov edi, eax
add esp, 4
mov dword [esp + 0x40], eax
mov ecx, dword [edx + 0x20]
mov esi, dword [edx + 0x1c]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x20]
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.00556850
mov eax, dword [esi + 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x48]
add esp, 4
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], edx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x34]
mov dword [eax + edi*4], ecx
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
inc eax
mov dword [esp + 0x28], eax
jmp 0x511c5d
cmp ebp, ebx
je 0x511c5d
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x5116d7
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp edi, ebx
je 0x511c85
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0x50], 0x35
je 0x511cac
push str.XGSP
mov ecx, eax
call fcn.004ddd00
mov esi, eax
jmp 0x511cae
xor esi, esi
lea ecx, [esp + 0x14]
push str.select__from__group_list__where__delflag_0_and__disable_0_and_av_share5
push ecx
mov dword [esp + 0x40], esi
mov byte [esp + 0x58], 0x11
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 8
mov ecx, esi
push 3
push 3
push 1
push edx
call fcn.004ddd90
cmp eax, ebx
jne 0x511df6
cmp esi, ebx
je 0x511cef
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [0x641030]
cmp eax, ebx
je 0x511d51
cmp byte [eax + 0x40], bl
je 0x511d51
add eax, 0x250
push eax
call ebp
push ebx
push 0x62d580
push 0x60c790
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x641030]
push str.runtime
push str.tdsms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x62d580
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x58], 0x36
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x60c790
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x5c], 0x37
mov ecx, esp
mov dword [esp + 0x44], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x60], 0x38
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x6192e0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x60], 0x11
call fcn.00459390
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 0x39
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x50], 0x3a
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x51208e
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push str.group_name
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x2c]
push ecx
push str.group_office_code
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x512078
push 0x2c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
cmp esi, ebx
mov byte [esp + 0x50], 0x3b
je 0x511ea6
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov dword [esi + 0x18], 0x5d74d0
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov dword [esp + 0x24], esi
jmp 0x511eaa
mov dword [esp + 0x24], ebx
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x58], 0x3a
call sub.MFC42.DLL_CString::CString_2
call fcn.004ec3c0
mov esi, dword [esp + 0x28]
add esp, 4
mov dword [esi + 4], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 5
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x2f0]
mov eax, dword [esi + 0x2ec]
mov ebp, edx
mov dword [esp + 0x40], ebp
inc ebp
cmp ebp, ebx
jne 0x511f26
cmp eax, ebx
je 0x511f15
push eax
mov dword [esp + 0x48], edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x2ec], ebx
mov dword [esi + 0x2f4], ebx
mov dword [esi + 0x2f0], ebx
jmp 0x51204f
cmp eax, ebx
jne 0x511f67
lea edi, [ebp*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi + 0x2ec], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 0x2f4], ebp
mov dword [esi + 0x2f0], ebp
jmp 0x51204f
mov ecx, dword [esi + 0x2f4]
cmp ebp, ecx
jg 0x511f9e
cmp edx, ebp
jge 0x511f8b
mov ecx, ebp
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esi + 0x2f0], ebp
jmp 0x51204f
jle 0x511f93
sub edx, ebp
mov dword [esp + 0x44], edx
mov dword [esi + 0x2f0], ebp
jmp 0x51204f
mov eax, dword [esi + 0x2f8]
cmp eax, ebx
jne 0x511fcb
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x511fbf
mov eax, 4
jmp 0x511fcb
cmp eax, 0x400
jle 0x511fcb
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x28], eax
jl 0x511fd9
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x28]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x48], eax
mov ecx, dword [edx + 0x2f0]
mov esi, dword [edx + 0x2ec]
shl ecx, 2
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 esi, dword [esp + 0x14]
mov ecx, ebp
mov edx, dword [esi + 0x2f0]
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x2ec]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
add esp, 8
mov dword [esi + 0x2ec], eax
mov dword [esi + 0x2f0], ebp
mov dword [esi + 0x2f4], ecx
mov edx, dword [esi + 0x2ec]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
mov dword [edx + ecx*4], eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x511e21
cmp esi, ebx
je 0x51209a
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [0x641030]
cmp eax, ebx
je 0x5120fc
cmp byte [eax + 0x40], bl
je 0x5120fc
add eax, 0x250
push eax
call ebp
push ebx
push 0x62d56c
push 0x6145d8
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x641030]
push str.runtime
push 0x60c77c
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x62d56c
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x58], 0x3c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x5c], 0x3d
mov ecx, esp
mov dword [esp + 0x44], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x60], 0x3e
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x60c778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x60], 0x3a
call fcn.00459390
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 0x39
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret