Function at 0x402c60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ae2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x1d4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], 0
mov dword [ebp - 4], 0
push 0x64
push 0
mov eax, dword [ebp - 0x110]
add eax, 0x4c
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x20
mov ecx, 0x47cc44
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, dword [ebp - 0x110]
add ecx, 0x4c
push ecx
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov edx, dword [ebp - 0x110]
mov eax, dword [0x47cc48]
mov dword [edx + 0x6c], eax
mov ecx, dword [ebp - 0x110]
mov edx, dword [0x47cc4c]
mov dword [ecx + 0x70], edx
push 0x464b48
push 0x47cc64
call fcn.00435fd0
add esp, 8
movzx eax, al
test eax, eax
je 0x402d4d
push 0x20
mov ecx, 0x47cc64
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, dword [ebp - 0x110]
add ecx, 0x74
push ecx
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov edx, dword [ebp - 0x110]
mov eax, dword [0x47cc68]
mov dword [edx + 0x94], eax
mov ecx, dword [ebp - 0x110]
mov edx, dword [0x47cc6c]
mov dword [ecx + 0x98], edx
push str.Select_sCompanyID_sCompanyName_sRegisterHostNum_sMaxUsedNum_sTransferFlag__n_t_t_t_t_t___isnull_dtPolicyTime_2000_1_1__as_dtPolicyTime_isnull_dtCardForbidTime_2000_1_1__as_dtCardForbidTime__isnull_dtSubCardForbidTime_2000_1_1__as_dtSubCardForbidTime__n_t_t_t_t_t___From_tSystem
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 1
push 0
mov ecx, dword [ebp - 0x110]
add ecx, 0x148
call fcn.00436110
mov byte [ebp - 0x115], al
movzx eax, byte [ebp - 0x115]
test eax, eax
je 0x402da5
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x34]
jmp 0x40368e
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.00437f80
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x110]
add ecx, 0x148
call fcn.004360e0
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 1
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x124]
call fcn.00438a70
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004362a0
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
call fcn.00438c50
mov word [ebp - 0x12e], ax
movsx eax, word [ebp - 0x12e]
test eax, eax
jne 0x403640
push str.sRegisterHostNum
lea ecx, [ebp - 0x48]
call fcn.004381c0
mov dword [ebp - 0x134], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.004362a0
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x138]
call fcn.00438d90
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.00438420
movzx eax, word [ebp - 0x30]
cmp eax, 1
je 0x402eda
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00438440
mov dword [ebp - 0x140], eax
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x144], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x10c]
or eax, 1
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x144]
call fcn.00438030
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], ecx
jmp 0x402ee4
mov dword [ebp - 0x14c], 0x464c71
mov edx, dword [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x10c]
and eax, 1
je 0x402f1b
and dword [ebp - 0x10c], 0xfffffffe
lea ecx, [ebp - 0x4c]
call fcn.00438010
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0x47cc80
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
mov dword [ebp - 0x154], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x47cbd0
call fcn.0043c550
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
mov dword [0x47cbd4], eax
push str.sMaxUsedNum
lea ecx, [ebp - 0x60]
call fcn.004381c0
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x14]
call fcn.004362a0
mov dword [ebp - 0x15c], eax
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x15c]
call fcn.00438d90
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x164], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x164]
push edx
lea ecx, [ebp - 0x30]
call fcn.00438380
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x70]
call fcn.00438420
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x60]
call fcn.00438420
movzx eax, word [ebp - 0x30]
cmp eax, 1
je 0x403028
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x74]
call fcn.00438440
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x16c], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x10c]
or eax, 2
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x16c]
call fcn.00438030
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x174], ecx
jmp 0x403032
mov dword [ebp - 0x174], 0x464c80
mov edx, dword [ebp - 0x174]
push edx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x10c]
and eax, 2
je 0x403063
and dword [ebp - 0x10c], 0xfffffffd
lea ecx, [ebp - 0x74]
call fcn.00438010
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x78], esp
push 0x47cc80
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
mov dword [ebp - 0x178], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x47cbd0
call fcn.0043c550
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
mov dword [0x47cbd8], eax
push str.sCompanyName
lea ecx, [ebp - 0x88]
call fcn.004381c0
mov dword [ebp - 0x17c], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14]
call fcn.004362a0
mov dword [ebp - 0x180], eax
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x180]
call fcn.00438d90
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x188], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x188]
push edx
lea ecx, [ebp - 0x30]
call fcn.00438380
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x98]
call fcn.00438420
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x88]
call fcn.00438420
movzx eax, word [ebp - 0x30]
cmp eax, 1
je 0x403182
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.00438440
mov dword [ebp - 0x18c], eax
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x190], edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x10c]
or eax, 4
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x190]
call fcn.00438030
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x198], ecx
jmp 0x40318c
mov dword [ebp - 0x198], 0x464c91
mov edx, dword [ebp - 0x198]
push edx
mov ecx, 0x47cbe4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x10c]
and eax, 4
je 0x4031c2
and dword [ebp - 0x10c], 0xfffffffb
lea ecx, [ebp - 0x9c]
call fcn.00438010
push str.sCompanyID
lea ecx, [ebp - 0xb0]
call fcn.004381c0
mov dword [ebp - 0x19c], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x14]
call fcn.004362a0
mov dword [ebp - 0x1a0], eax
lea ecx, [ebp - 0xb0]
push ecx
lea edx, [ebp - 0xc0]
push edx
mov ecx, dword [ebp - 0x1a0]
call fcn.00438d90
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x1a8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00438380
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xc0]
call fcn.00438420
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb0]
call fcn.00438420
movzx edx, word [ebp - 0x30]
cmp edx, 1
je 0x4032a2
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00438440
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b0], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x10c]
or edx, 8
mov dword [ebp - 0x10c], edx
mov ecx, dword [ebp - 0x1b0]
call fcn.00438030
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b8], eax
jmp 0x4032ac
mov dword [ebp - 0x1b8], 0x464c9f
mov ecx, dword [ebp - 0x1b8]
push ecx
mov ecx, 0x47cbe0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov dword [ebp - 4], 9
mov edx, dword [ebp - 0x10c]
and edx, 8
je 0x4032e2
and dword [ebp - 0x10c], 0xfffffff7
lea ecx, [ebp - 0xc4]
call fcn.00438010
push 0x47cbe0
push str.ReadSystemInfo
lea eax, [ebp - 0xc8]
push eax
call fcn.00435f00
add esp, 0xc
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str.sTransferFlag
lea ecx, [ebp - 0xd8]
call fcn.004381c0
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x14]
call fcn.004362a0
mov dword [ebp - 0x1c4], eax
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xe8]
push edx
mov ecx, dword [ebp - 0x1c4]
call fcn.00438d90
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x1cc], eax
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x1cc]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00438380
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xe8]
call fcn.00438420
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd8]
call fcn.00438420
movzx edx, word [ebp - 0x30]
cmp edx, 1
je 0x403400
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xec]
call fcn.00438440
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], ecx
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x10c]
or edx, 0x10
mov dword [ebp - 0x10c], edx
mov ecx, dword [ebp - 0x1d4]
call fcn.00438030
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1dc], eax
jmp 0x40340a
mov dword [ebp - 0x1dc], 0x464cc0
mov ecx, dword [ebp - 0x1dc]
push ecx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov dword [ebp - 4], 9
mov edx, dword [ebp - 0x10c]
and edx, 0x10
je 0x40343e
and dword [ebp - 0x10c], 0xffffffef
lea ecx, [ebp - 0xec]
call fcn.00438010
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
cmp eax, 0x14
jge 0x40345a
push str.22121111000000000000
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
push 0x14
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov eax, dword [ebp - 0x110]
add eax, 0x9c
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 0x110]
movsx edx, byte [ecx + 0x9c]
sub edx, 0x30
mov eax, dword [ebp - 0x110]
mov dword [eax + 0xc4], edx
mov ecx, dword [ebp - 0x110]
movsx edx, byte [ecx + 0x9d]
sub edx, 0x30
mov eax, dword [ebp - 0x110]
mov dword [eax + 0xc8], edx
mov ecx, dword [ebp - 0x110]
movsx edx, byte [ecx + 0x9e]
sub edx, 0x30
mov eax, dword [ebp - 0x110]
mov dword [eax + 0xbc], edx
mov ecx, dword [ebp - 0x110]
movsx edx, byte [ecx + 0x9f]
sub edx, 0x30
mov eax, dword [ebp - 0x110]
mov dword [eax + 0xc0], edx
mov ecx, dword [ebp - 0x110]
movsx edx, byte [ecx + 0xa0]
sub edx, 0x30
mov eax, dword [ebp - 0x110]
mov dword [eax + 0xb4], edx
mov ecx, dword [ebp - 0x110]
movsx edx, byte [ecx + 0xa1]
sub edx, 0x30
mov eax, dword [ebp - 0x110]
mov dword [eax + 0xb8], edx
mov ecx, dword [ebp - 0x110]
movsx edx, byte [ecx + 0xa2]
sub edx, 0x30
mov eax, dword [ebp - 0x110]
mov dword [eax + 0xcc], edx
mov ecx, dword [ebp - 0x110]
movsx edx, byte [ecx + 0xa3]
sub edx, 0x30
mov eax, dword [ebp - 0x110]
mov dword [eax + 0xb0], edx
mov ecx, dword [ebp - 0x110]
movsx edx, byte [ecx + 0xa4]
sub edx, 0x30
mov eax, dword [ebp - 0x110]
mov dword [eax + 0xd0], edx
lea ecx, [ebp - 0x14]
call fcn.004362a0
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1e0]
call fcn.00438d10
push 0
mov ecx, dword [ebp - 0x110]
call fcn.004050e0
mov ecx, dword [ebp - 0x110]
call fcn.004036a0
push 1
push 1
push 1
push 1
push 1
push 0x7d2
lea ecx, [ebp - 0xf8]
call fcn.00435600
mov ecx, eax
call fcn.00435a50
mov ecx, dword [ebp - 0x110]
fstp qword [ecx + 8]
push 1
push 1
push 1
push 1
push 1
push 0x7d2
lea ecx, [ebp - 0x104]
call fcn.00435600
mov ecx, eax
call fcn.00435a50
mov edx, dword [ebp - 0x110]
fstp qword [edx + 0x28]
mov dword [ebp - 0x108], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00438420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00438ed0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x108]
jmp 0x40368e
lea ecx, [ebp - 0x14]
call fcn.004362a0
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp - 0x1e4]
call fcn.00438d10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00438ed0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x403685
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret