Function at 0x406980
Capabilities:
Hide graphical window
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a07d
mov eax, dword fs:[0]
push eax
sub esp, 0xfbc
mov eax, dword [0x5b1178]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xfc4], edi
call fcn.004109a2
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00416305
or ebx, 0xffffffff
mov dword [ebp - 0xfbc], eax
test eax, eax
je 0x406a85
call fcn.0040c96b
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4069f9
push 0x80004005
call fcn.004019d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xfb4], esi
push 0x65
mov dword [ebp - 4], 0
call fcn.0040c5bd
test eax, eax
je 0x406a2f
push 0x65
push eax
lea ecx, [ebp - 0xfb4]
call fcn.004038b0
mov esi, dword [ebp - 0xfb4]
cmp dword [esi - 0xc], 0
je 0x406a65
mov eax, dword [ebp - 0xfbc]
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
push 0
push 0
push 0x800
push dword [eax + 4]
call edi
mov eax, dword [ebp - 0xfbc]
push esi
push 0x10
push 0
push dword [eax + 4]
call edi
mov edi, dword [ebp - 0xfc4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406a85
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0x94]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x80
push dword [edi + 0x20]
call esi
push dword [edi + 0x94]
push 0
push 0x80
push dword [edi + 0x20]
call esi
lea eax, [ebp - 0xfc0]
push eax
mov ecx, 0x5b2a20
call fcn.0040a750
push str.Jetprice.ini
lea eax, [ebp - 0xfc0]
push eax
lea eax, [ebp - 0xfb8]
push eax
mov dword [ebp - 4], 1
call fcn.004015a0
add esp, 0xc
push eax
lea ecx, [edi + 0xa0]
mov byte [ebp - 4], 2
call fcn.00401370
mov edx, dword [ebp - 0xfb8]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406b15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.JetPrice.xla
lea eax, [ebp - 0xfc0]
push eax
lea eax, [ebp - 0xfb8]
push eax
call fcn.004015a0
add esp, 0xc
lea ecx, [edi + 0x98]
push eax
mov byte [ebp - 4], 3
call fcn.00401370
mov edx, dword [ebp - 0xfb8]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406b63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.JetPrice.xlam
lea eax, [ebp - 0xfc0]
push eax
lea eax, [ebp - 0xfc8]
push eax
call fcn.004015a0
add esp, 0xc
lea ecx, [edi + 0x9c]
push eax
mov byte [ebp - 4], 4
call fcn.00401370
mov edx, dword [ebp - 0xfc8]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406bb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0xa0]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x7d0
lea eax, [ebp - 0xfb0]
push eax
push 0
push str.QWAY_CAPTION_NAME
push str.INFO
call esi
call fcn.0040c96b
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406bf3
push 0x80004005
call fcn.004019d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xfb8], eax
lea eax, [ebp - 0xfb0]
push eax
lea eax, [ebp - 0xfb8]
push 0x55bf18
push eax
mov byte [ebp - 4], 5
call fcn.00402ee0
add esp, 0xc
push dword [edi + 0xa0]
lea eax, [ebp - 0x7e0]
push 0x7d0
push eax
push 0
push str.AUTO_OPEN_EXCEL
push str.INFO
call esi
call fcn.0040c96b
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406c5e
push 0x80004005
call fcn.004019d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xfbc], eax
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0xfbc]
push 0x55bf18
push eax
mov byte [ebp - 4], 6
call fcn.00402ee0
mov edi, dword [ebp - 0xfbc]
push 0x55c634
push edi
call fcn.0052b41f
mov ebx, dword [ebp - 0xfc4]
add esp, 0x14
test eax, eax
push 3
push 0
push 0
sete al
push 0
test al, al
push 0
setne al
push 0x5b47a0
mov ecx, ebx
mov byte [ebx + 0x2c8], al
call fcn.0041d389
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [ebp - 0xfb8]
push esi
mov ecx, ebx
call fcn.0041d3c5
mov ecx, ebx
call fcn.004064d0
lea ecx, [ebx + 0x2bc]
call sym.JetPrice.exe_public:_void___thiscall_CDDESendMgr::Connect_void_
push 1
push 0
push 0
push 0xbb8
push 0x3e8
push 0x5b47a0
mov ecx, ebx
call fcn.0041d389
push 0
mov ecx, ebx
call fcn.0041d409
mov ecx, ebx
call fcn.00407f70
call fcn.004110f3
test eax, eax
je 0x406d38
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
je 0x406d38
mov eax, dword [eax + 0x20]
jmp 0x406d3a
xor eax, eax
push 0xffffffffffffffec
push eax
mov dword [ebp - 0xfb4], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
push 0
push dword [ebp - 0xfb4]
and ebx, 0xeffbffff
or ebx, 0x80
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0xffffffffffffffec
push dword [ebp - 0xfb4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406d94
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406db1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xfc0]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x406dd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052bb26
mov esp, ebp
pop ebp
ret