Function at 0x40272d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x4056b0]
push ebx
push esi
push edi
xor ebx, ebx
push 0x7f00
push ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0x402955
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x18], 0xd
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], str.WebExOnDemandEditorClass
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x553]
mov byte [ebp - 0x554], bl
mov esi, 0x200
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x405768]
cmp eax, ebx
je 0x4027cf
lea ecx, [ebp - 0x554]
push esi
push ecx
push 0x372b
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x4027cf
lea eax, [ebp - 0x554]
push str.WebEx_Editor
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push ebx
mov eax, 0x80000000
push dword [0x4056b0]
push ebx
push ebx
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x554]
push 0xcf0000
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x40
mov dword [ebp - 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
mov byte [ebp - 0x154], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x354]
push ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x354]
push esi
push eax
push dword [0x4056b0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x354]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop ecx
cmp eax, ebx
pop ecx
je 0x4028f2
lea ecx, [ebp - 0x354]
sub eax, ecx
inc eax
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x154]
push str._ateditor.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 8], edi
je 0x4028f2
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x658]
push str.__OPEN
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x4028d3
add dword [ebp - 4], 6
push str.WOTInitEditor
push edi
call esi
cmp eax, ebx
je 0x4028e7
push dword [ebp - 4]
push dword [ebp - 0xc]
call eax
push str.WOTIsDialogMessage
push edi
call esi
mov dword [ebp - 4], eax
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [ebp - 0x50]
push ebx
push eax
call edi
test eax, eax
je 0x402932
cmp dword [ebp - 4], ebx
je 0x402915
lea eax, [ebp - 0x50]
push eax
call dword [ebp - 4]
test eax, eax
jne 0x402929
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x50]
push ebx
push eax
jmp 0x4028ff
cmp dword [ebp - 8], ebx
je 0x402950
push str.WOTExitEditor
push dword [ebp - 8]
call esi
cmp eax, ebx
je 0x402947
call eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret