Function at 0x42aa3e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4963dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], edi
call fcn.0048b4e8
mov esi, eax
mov eax, dword [ebp + 0xc]
sub eax, 0x4e
je 0x42af6a
sub eax, 0xc2
je 0x42ad13
sub eax, 1
jne 0x42afdc
mov eax, dword [ebp + 0x10]
movzx eax, ax
sub eax, 1
je 0x42abf5
sub eax, 1
je 0x42abd9
sub eax, 0xbdf
jne 0x42afdc
push 0xbe0
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
push 2
push 0xffffffffffffffff
push 0x100c
push ebx
mov dword [ebp - 0x16c], 5
call esi
mov dword [ebp - 0x168], eax
xor edi, edi
lea eax, [ebp - 0x11e]
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x16c]
push eax
push edi
push 0x1005
push ebx
mov dword [ebp - 0x154], 0x100
call esi
xor esi, esi
inc esi
test eax, eax
je 0x42afdc
mov eax, dword [0x499eb4]
mov ecx, dword [0x49b110]
mov edx, ecx
mov dword [ebp - 0x128], eax
mov ax, word [ebp - 0x14c]
mov word [ebp - 0x124], ax
movzx eax, word [0x499eb8]
mov dword [ebp - 0x122], eax
lea eax, [ebp - 0x128]
push eax
push 0x42a82a
push dword [0x4999c0]
push str.DLGPARAMEDIT
call fcn.0048814e
cmp eax, esi
jne 0x42afdc
movsx eax, word [ebp - 0x124]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x16c]
push eax
push edi
push 0x1006
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x499eb4]
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x164], esi
call fcn.0042a7ec
mov dword [ebp - 0x158], eax
test eax, eax
je 0x42afdc
lea eax, [ebp - 0x16c]
push eax
push edi
push 0x1006
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x42afdc
push dword [0x499eb4]
call fcn.0042a7a7
push 0
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
xor esi, esi
inc esi
jmp 0x42afdc
push 0xbe0
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [0x49b03c]
xor edi, edi
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x16c], 5
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], 0x100
mov dword [ebp - 0x168], edi
cmp dword [ecx + 0x24], edi
jle 0x42acff
mov ebx, dword [ebp - 0x12c]
lea eax, [ebp - 0x16c]
push eax
push edi
push 0x1005
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x42acdd
mov ecx, dword [0x499a30]
lea edx, [ebp - 0x120]
call fcn.004833bf
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x42acdd
mov esi, dword [0x49b03c]
mov eax, dword [ebp - 0x168]
imul edx, eax, 0x13
mov ecx, dword [esi + 0x20]
mov ecx, dword [ecx]
mov ecx, dword [ecx + edx + 4]
test ecx, ecx
je 0x42acb1
push ecx
push dword [0x499a30]
call fcn.00483654
mov esi, dword [0x49b03c]
mov eax, dword [ebp - 0x168]
mov edx, dword [ebp - 0x12c]
imul ecx, eax, 0x13
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
mov dword [ecx + eax + 4], edx
mov eax, dword [esi + 0x20]
imul edx, dword [ebp - 0x168], 0x13
mov ecx, dword [eax]
mov ax, word [ebp - 0x14c]
mov word [edx + ecx + 0x10], ax
jmp 0x42ace3
mov esi, dword [0x49b03c]
mov eax, dword [ebp - 0x168]
inc eax
mov dword [ebp - 0x168], eax
cmp eax, dword [esi + 0x24]
jl 0x42ac4a
mov ebx, dword [ebp - 0x130]
push dword [0x499eb4]
call fcn.0042a7a7
xor esi, esi
inc esi
push esi
jmp 0x42af61
push 0x499eb8
push 0x3a
push dword [edi]
call dword [sym.imp.ODBC32.dll_SQLGetFunctions]
test ax, 0xfffe
je 0x42ad30
xor eax, eax
mov word [0x499eb8], ax
mov ecx, edi
call fcn.0042a67e
xor esi, esi
mov dword [0x499eb4], eax
inc esi
test eax, eax
je 0x42af5f
push 0xbe0
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x12c], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [0x49b10c], 0x400
jb 0x42ad83
push 0x2d
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0xc]
neg eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0xc], eax
xor edi, edi
push edi
push edi
push 0x1028
push dword [ebp - 0x12c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x49b03c]
cmp eax, dword [ecx + 0x24]
jge 0x42adb5
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0xc], ecx
jmp 0x42adb8
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
imul eax, ecx, 3
push 5
pop ecx
mov dword [ebp - 0x198], 0xf
mov dword [ebp - 0x194], edi
cdq
idiv ecx
mov ecx, 0x1500e3
mov dword [ebp - 0x190], eax
call fcn.0045baa2
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x198]
push eax
push edi
push 0x101b
push dword [ebp - 0x12c]
mov dword [ebp - 0x184], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0xc]
mov ecx, 0x1500e4
sub eax, dword [ebp - 0x190]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x190], eax
call fcn.0045baa2
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x198]
push eax
push esi
push 0x101b
push dword [ebp - 0x12c]
mov dword [ebp - 0x184], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x49b03c]
mov dword [ebp - 0x15c], 3
mov dword [ebp - 0x168], edi
cmp dword [ecx + 0x24], edi
jle 0x42af34
mov ebx, edi
xor edx, edx
mov dword [ebp - 0x16c], 0xd
push 3
pop eax
test ebx, ebx
mov dword [ebp - 0x164], edi
cmovne eax, edx
mov edx, 0x100
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x158], eax
mov eax, dword [ecx + 0x20]
imul ecx, ebx, 0x13
mov eax, dword [eax]
movsx eax, word [eax + ecx + 0x10]
mov ecx, ebx
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x120]
push eax
call fcn.00449ef6
mov ebx, dword [ebp - 0x12c]
lea eax, [ebp - 0x16c]
push eax
push edi
push 0x1007
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x499eb4]
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x164], esi
call fcn.0042a7ec
mov dword [ebp - 0x158], eax
test eax, eax
je 0x42af12
lea eax, [ebp - 0x16c]
push eax
push edi
push 0x1006
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [ebp - 0x168]
mov ecx, dword [0x49b03c]
inc ebx
mov dword [ebp - 0x168], ebx
cmp ebx, dword [ecx + 0x24]
jl 0x42ae6b
mov ebx, dword [ebp - 0x130]
xor eax, eax
cmp eax, dword [ecx + 0x24]
sbb eax, eax
neg eax
push eax
push 0xbe1
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x1b
or edx, 0xffffffff
mov ecx, ebx
call fcn.004882b2
jmp 0x42afdc
push 2
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x42afdc
cmp dword [edi + 8], 0xffffff9b
je 0x42afb8
cmp dword [edi + 8], 0xfffffffd
jne 0x42afdc
cmp dword [edi + 4], 0xbe0
jne 0x42afdc
mov eax, dword [ebp - 0x12c]
xor edi, edi
push edi
push edi
push 0x1032
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x42afdc
mov esi, 0xbe1
push esi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push esi
push 0x111
push ebx
call fcn.0042aa3e
mov esi, eax
jmp 0x42afdc
xor esi, esi
inc esi
test byte [edi + 0x1c], 8
je 0x42afdc
mov eax, dword [edi + 0x14]
shr eax, 1
and eax, esi
push eax
push 0xbe1
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048dc69
mov esp, ebp
pop ebp
ret 0x10