Function at 0x402600
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c9cc
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x412150]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], ebx
call section..text
mov esi, eax
push str.Starting_with_commandLine:
lea ecx, [ebp - 0xb0]
call fcn.004021f0
mov byte [ebp - 4], 1
push edi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.004022b0
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x402678
mov eax, dword [eax]
mov edx, dword [esi]
push 0x7d0
push str.WinMain
push eax
mov ecx, esi
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00401dc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call fcn.00401dc0
mov ecx, 0x20
mov word [ebp - 0xb8], cx
mov eax, edi
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4026c0
sub eax, ecx
inc eax
push eax
call fcn.00404c9b
add esp, 4
mov dword [ebp - 0xc0], eax
mov ecx, edi
mov edx, eax
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4026e0
mov edi, dword [ebp - 0xc0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4026f1
mov dx, word [0x40d7b0]
mov word [edi], dx
lea edi, [ebp - 0xc0]
lea eax, [ebp - 0xb8]
push eax
mov ecx, edi
push ecx
call fcn.00403670
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x40273f
push esi
call fcn.00401200
push esi
call fcn.00404691
lea edx, [ebp - 0xb8]
push edx
push edi
call fcn.00403670
add esp, 0x10
jmp 0x40271b
mov eax, dword [0x412014]
push eax
call fcn.00402340
add esp, 4
mov dword [0x41308c], eax
mov dword [ebp - 0xb4], ebx
lea ecx, [ebp - 0xb4]
push ecx
push 0x40d490
push 0x15
push ebx
push 0x40d7a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
mov dword [ebp - 0xbc], edi
cmp edi, ebx
jl 0x4027a4
cmp dword [ebp - 0xb4], ebx
je 0x4027a4
call section..text
mov edx, dword [eax]
push 0x7d0
push str.WinMain
push str.CoCreateInstance_IEBrowserSessionSequence_OK___
mov ecx, eax
mov eax, dword [edx]
call eax
jmp 0x40281f
push 0xa
lea ecx, [ebp - 0x78]
push ecx
push edi
call fcn.0040c75d
add esp, 0xc
call section..text
mov esi, eax
push str.Failure_in_CoCreateInstance_IEBrowserSessionSequence:
lea ecx, [ebp - 0x94]
call fcn.004021f0
mov bl, 3
mov byte [ebp - 4], bl
lea edx, [ebp - 0x78]
push edx
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004022b0
add esp, 0xc
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x4027ef
mov eax, dword [eax]
mov edx, dword [esi]
push 0xfa0
push str.WinMain
push eax
mov ecx, esi
mov eax, dword [edx]
call eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xb0]
call fcn.00401dc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.00401dc0
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x402a9b
mov ecx, dword [eax]
xor edx, edx
mov esi, 1
cmp dword [0x4130b0], esi
sete dl
push edx
xor edx, edx
cmp dword [0x4130ac], esi
sete dl
push edx
xor edx, edx
cmp dword [0x4130a8], esi
sete dl
push edx
xor edx, edx
cmp dword [0x4130a4], esi
sete dl
push edx
xor edx, edx
cmp dword [0x4130a0], esi
sete dl
push edx
xor edx, edx
cmp dword [0x41309c], esi
sete dl
push edx
xor edx, edx
cmp dword [0x413098], esi
sete dl
push edx
xor edx, edx
cmp dword [0x413094], esi
sete dl
push edx
xor edx, edx
cmp dword [0x413090], esi
sete dl
push edx
xor edx, edx
cmp dword [0x412008], esi
sete dl
push edx
xor edx, edx
cmp dword [0x412004], esi
sete dl
push edx
xor edx, edx
cmp dword [section..data], esi
sete dl
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
push eax
cmp byte [0x41200c], 0
je 0x4028e1
mov edx, dword [ecx + 0x2c]
jmp 0x4028e4
mov edx, dword [ecx + 0x28]
call edx
push 0x413088
push 0x40d9dc
push esi
push 0
push 0x40d9cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xbc], eax
test eax, eax
jns 0x402924
call section..text
mov edx, dword [eax]
push 0xfa0
push str.WinMain
push str.Failure_in_CoCreateInstance_IID_IGlobalInterfaceTable
mov ecx, eax
mov eax, dword [edx]
call eax
mov eax, dword [0x413088]
mov ecx, dword [eax]
push 0x413084
push 0x40d490
mov edx, dword [ebp - 0xb4]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0xbc], eax
test eax, eax
jns 0x402968
call section..text
mov edx, dword [eax]
push 0xfa0
push str.WinMain
push str.Failure_in_RegisterInterfaceInGlobal
mov ecx, eax
mov eax, dword [edx]
call eax
lea ecx, [ebp - 0xc4]
push ecx
push 0
push 0
push 0x401a80
push 0
push 0
call fcn.00404910
add esp, 0x18
mov byte [ebp - 4], 5
mov ebx, dword [sym.imp.USER32.dll_GetParent]
mov edi, edi
push 0
push 0
push 0
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x402a56
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x8c]
cmp eax, 0xd
je 0x4029cc
cmp eax, 9
je 0x4029cc
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [ebp - 0x90], 0x100
jne 0x402a14
mov esi, dword [ebp - 0x94]
mov edi, esi
test esi, esi
je 0x4029f8
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4029f8
mov edi, esi
push esi
call ebx
mov esi, eax
jmp 0x4029e0
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x90]
push eax
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [ebp - 4], 5
jmp 0x402990
call section..text
mov edx, dword [eax]
push 0x7d0
push str.WinMain
push str.Ending_pSessionSequence
mov ecx, eax
mov eax, dword [edx]
call eax
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 0x3c]
call edx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0xbc]
call section..text
mov edx, dword [eax]
push 0x7d0
push str.WinMain
push str.End_of_process
mov ecx, eax
mov eax, dword [edx]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
jmp 0x402b18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00403e26
mov esp, ebp
pop ebp
ret 0x10