Function at 0x474d30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ea3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x13ec
call fcn.00552f40
mov eax, dword [0x64b2d4]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
jne 0x474d86
push ebx
push ebx
push str.Ado_no_initial
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x228]
cmp dword [esi + 0x1bc8], ebx
je 0x474da4
mov ecx, esi
call fcn.00475860
jmp 0x47553d
mov ecx, dword [esi + 0x1780]
mov edx, dword [0x6658f8]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
push edx
lea eax, [ebp - 0xdc]
push 0x6052f8
push eax
call edi
lea ecx, [ebp - 0xdc]
push ecx
call fcn.004924b0
add esp, 0x14
cmp eax, 1
jne 0x4751b7
lea ecx, [ebp - 0x66c]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x668]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x510]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x50c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x4e4]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x4dc]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x4d8]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], ebx
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x23c]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0x18
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x19
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x1b
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0x1c
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0x1d
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 0x1e
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 0x1f
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0x20
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 0x21
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x204]
mov byte [ebp - 4], 0x22
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x200]
mov byte [ebp - 4], 0x23
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 0x24
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 0x25
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 0x26
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x27
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 0x28
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 0x29
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1e4]
mov byte [ebp - 4], 0x2a
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0x2b
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 0x2c
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], 0x2d
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 0x2e
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 0x2f
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 0x30
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 0x31
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 0x32
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 0x33
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0x34
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 0x35
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0x36
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 0x37
mov dword [ebp - 0x674], 0x59ae48
call fcn.00458570
mov dword [ebp - 0x5d0], 0x2710
mov dword [ebp - 0x5cc], 0xc80
mov dword [ebp - 0x5c8], 2
mov dword [ebp - 0x5c0], ebx
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x170], 0
mov edx, dword [esi + 0x1780]
lea eax, [ebp - 0xdc]
push edx
push str._s.dbf
push eax
mov dword [ebp - 4], 0x38
call edi
lea ecx, [ebp - 0xdc]
push ebx
lea edx, [ebp - 0x674]
push ecx
push edx
call fcn.00456f90
lea eax, [ebp - 0x674]
push eax
call fcn.004c0b80
lea ecx, [ebp - 0x674]
push ebx
push ecx
call fcn.0044ff40
add esp, 0x24
lea ecx, [ebp - 0x674]
mov dword [ebp - 4], 0xffffffff
call fcn.0045b900
mov edx, dword [esi + 0x1780]
mov eax, dword [0x6658f8]
push edx
push eax
lea ecx, [ebp - 0x728]
push str._s_s.sql
push ecx
call edi
lea edx, [ebp - 0x728]
push edx
call fcn.004924b0
add esp, 0x14
cmp eax, 1
je 0x475205
push ebx
push ebx
push str.sql_statement_file_not_found
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1780]
lea ecx, [ebp - 0xdc]
push eax
push str._s.tmp
push ecx
call edi
lea edx, [ebp - 0xdc]
push 1
push edx
call fcn.004eec70
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x47524f
mov ecx, dword [esi + 0x444]
lea eax, [ebp - 0x728]
push eax
push ecx
push ebx
call fcn.0050f690
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
mov eax, dword [0x64b2d4]
mov dword [ebp - 4], 0x39
test eax, eax
jne 0x475269
push 0x80004003
call fcn.00571280
mov edi, dword [0x64b2d4]
lea eax, [ebp - 0x18]
push eax
push edi
mov edx, dword [edi]
call dword [edx + 0x44]
test eax, eax
jge 0x475294
push 0x5fc670
push edi
push eax
call fcn.0057128e
jmp 0x475294
mov edx, dword [esi + 0x12dc]
lea ecx, [ebp - 0x28]
push ecx
push 2
or eax, 0xffffffff
push 0x404
push edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0x7d
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ebx, [esi + 0x1788]
lea eax, [ebp - 0xdc]
push ebx
push eax
call fcn.0050ef80
add esp, 8
mov dword [esi + 0x1bd4], eax
test eax, eax
mov dword [ebp - 0x14], 0
jle 0x4754dc
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 0x1bd4]
inc edx
push ecx
push edx
lea eax, [ebp - 0x18]
push str.SQL_Statement__i__i
push eax
mov dword [ebp - 4], 0x3b
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x18]
mov edx, dword [esi + 0x12dc]
add esp, 0x10
push ecx
push 0
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + ecx*4]
push edx
call dword [sym.imp.MSVCRT.dll__strupr]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + ecx*4]
push edx
call fcn.004b5190
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_strncmp]
push 4
mov edx, dword [eax + ecx*4]
push str.EXIT
push edx
call edi
add esp, 0x14
test eax, eax
je 0x4754cd
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
push 3
push 0x602c0c
mov edx, dword [eax + ecx*4]
push edx
call edi
add esp, 0xc
test eax, eax
je 0x4754a7
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + ecx*4]
push edx
call fcn.0044e460
add esp, 4
test eax, eax
jne 0x4754a7
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
push 0xb
push 0x602794
mov edx, dword [eax + ecx*4]
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x47545f
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + ecx*4]
push edx
call fcn.0044dfc0
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, dword [eax + ecx*4]
lea eax, [ebp - 0x4dc]
add edx, 0xc
push edx
push str._s.dbf
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [ebp - 0x4dc]
push ecx
call fcn.004924b0
add esp, 0x10
cmp eax, 1
jne 0x47545f
push 0
push 0xc80
push 2
push 0x2710
lea ecx, [ebp - 0xcc0]
call fcn.004016d0
lea edx, [ebp - 0x4dc]
push 0
lea eax, [ebp - 0xcc0]
push edx
push eax
mov byte [ebp - 4], 0x3c
call fcn.00456f90
lea ecx, [ebp - 0xcc0]
push ecx
call fcn.004c0b80
lea edx, [ebp - 0xcc0]
push 0
push edx
call fcn.0044ff40
add esp, 0x18
lea ecx, [ebp - 0xcc0]
mov byte [ebp - 4], 0x3b
call fcn.0045b900
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + ecx*4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4754a7
push 2
push 0x6052a4
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x47549a
lea edx, [ebp - 0x14]
mov ecx, esi
push edx
call fcn.00474ac0
cmp eax, 1
je 0x4754a7
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call fcn.00474ca0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x1bd4]
inc eax
cmp eax, ecx
mov dword [ebp - 0x14], eax
jl 0x4752e7
jmp 0x4754dc
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x64b2d4]
mov dword [ebp - 4], 0x3d
test eax, eax
jne 0x4754f6
push 0x80004003
call fcn.00571280
mov edi, dword [0x64b2d4]
push edi
mov ecx, dword [edi]
call dword [ecx + 0x48]
test eax, eax
jge 0x47551d
push 0x5fc670
push edi
push eax
call fcn.0057128e
jmp 0x47551d
mov edx, dword [esi + 0x1bd4]
lea eax, [esi + 0x1788]
dec edx
mov dword [ebp - 4], 0xffffffff
push edx
push eax
call fcn.0050ef40
add esp, 8
xor ebx, ebx
cmp dword [esi + 0x1bc4], ebx
jne 0x47555d
mov ecx, esi
call sub.MFC42.DLL_CDialog::OnCancel
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x64b2e0]
mov ecx, dword [esi + 0x1780]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
mov eax, dword [edx + 0x780]
lea ecx, [ebp - 0xdc]
push eax
push str._s_s.rpt
push ecx
call edi
lea edx, [ebp - 0xdc]
push edx
call fcn.004924b0
add esp, 0x14
cmp eax, 1
je 0x475664
mov eax, dword [esi + 0x1780]
mov ecx, dword [0x6658f8]
push eax
push ecx
lea edx, [ebp - 0xdc]
push str._s_s.fmt
push edx
call edi
lea eax, [ebp - 0xdc]
push eax
call fcn.004924b0
add esp, 0x14
cmp eax, 1
push ebx
je 0x4755ec
push ebx
push str.Crystal_report_file_or_format_file_not_found
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc80
push 2
push 0x2710
lea ecx, [ebp - 0xcc0]
call fcn.004016d0
lea ecx, [ebp - 0xdc]
push ebx
lea edx, [ebp - 0xcc0]
push ecx
push edx
mov dword [ebp - 4], 0x3f
call fcn.00456f90
mov ecx, dword [esi + 0x444]
lea eax, [ebp - 0xcc0]
push eax
push ecx
call fcn.00498c60
lea edx, [ebp - 0xcc0]
push ebx
push edx
call fcn.0044ff40
add esp, 0x1c
lea ecx, [ebp - 0xcc0]
mov dword [ebp - 4], 0xffffffff
call fcn.0045b900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x13f0]
call fcn.004d1b70
mov eax, dword [esi + 0x444]
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0xd58]
mov dword [ebp - 4], 0x40
mov dword [ebp - 0xd08], eax
call sub.MFC42.DLL_CString::operator_3
lea ecx, [ebp - 0x13f0]
mov dword [ebp - 0xd40], 1
mov dword [ebp - 0xd38], ebx
call sub.MFC42.DLL_CDialog::DoModal
cmp dword [esi + 0x1bd8], ebx
je 0x4757d1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x1780]
lea eax, [ebp - 0x1c]
push edx
mov bl, 0x41
push str.delete_from__s
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::Format
mov edi, dword [ebp - 0x1c]
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x18], esi
test esi, esi
mov byte [ebp - 4], 0x42
je 0x475722
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.0057132d
test eax, eax
mov dword [esi], eax
jne 0x475724
test edi, edi
je 0x475724
push 0x8007000e
call fcn.00571280
jmp 0x475724
xor esi, esi
test esi, esi
mov byte [ebp - 4], bl
mov dword [ebp - 0x20], esi
jne 0x475738
push 0x8007000e
call fcn.00571280
push 0x80
push 0
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call fcn.00415c40
mov ecx, 0x64b2d4
mov byte [ebp - 4], 0x45
call fcn.00427c50
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x44
push ecx
mov ecx, eax
call fcn.0045f800
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x475778
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0x43
test esi, esi
je 0x4757c5
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4757be
test esi, esi
je 0x4757be
mov eax, dword [esi]
test eax, eax
je 0x4757a5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x4757b5
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x40
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x13f0]
mov dword [ebp - 4], 0xffffffff
call fcn.004d1d80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret