Function at 0x491a16
Capabilities:
Accept command line arguments
Check http status code

Disassembly:
push 0x118
mov eax, 0x4a145c
call fcn.00429b45
xor ebx, ebx
mov dword [ebp - 0x7c], 0x4facb0
mov byte [ebp - 0x6d], bl
mov dword [ebp - 0x80], ebx
mov byte [0x4faed4], bl
mov dword [ebp - 4], ebx
call fcn.0048fae6
mov eax, dword [0x4b38bf]
cmp eax, dword [0x4fae50]
je 0x491ab9
push 0x16
lea eax, [ebp - 0x64]
mov ecx, 0x4d3158
push eax
call fcn.0040b6f4
cmp dword [eax + 0x14], 0x10
jb 0x491a67
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040a182
mov esi, 0x4b37d4
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], esi
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00408bf0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040a1b9
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], esi
push 0x4caf14
push eax
call fcn.0044395c
cmp dword [0x4fade8], 0
je 0x491ad2
call fcn.00490141
mov byte [ebp - 0x6d], al
cmp al, 1
je 0x4925fd
mov esi, 0x4faf2c
push esi
push 0x451
call fcn.00490ec8
cmp dword [0x4faf3c], 2
jbe 0x491b11
cmp dword [0x4faedc], 0
jne 0x491b11
push dword [0x4faef4]
push dword [0x4faef8]
push esi
call fcn.004902ba
mov byte [ebp - 0x6d], al
cmp al, 1
je 0x4925fd
call fcn.0048fd08
cmp dword [0x4faed8], 0xe
jge 0x491b24
mov byte [ebp - 0x78], bl
jmp 0x491b2c
call fcn.0048ffc2
mov byte [ebp - 0x78], al
push dword [ebp - 0x78]
call fcn.00490afa
test al, al
jne 0x491bab
mov ecx, 0x4fae90
call fcn.004931bb
push str.This_application_can_only_be_started_with_Excel_32_bit.
lea ecx, [ebp - 0x64]
call fcn.004066f1
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.0040a182
mov esi, 0x4b37d4
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], esi
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00408bf0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040a1b9
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], esi
push 0x4caf14
jmp 0x491ab3
call fcn.0049072c
cmp byte [0x4fadb4], 1
mov dword [ebp - 0x80], eax
jne 0x491c64
cmp dword [0x4faed8], 9
jg 0x491c64
push 7
pop esi
xor eax, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 3
mov eax, dword [0x4faee4]
test eax, eax
je 0x491bf7
push ebx
push ebx
push 0x502
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 8
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.0049292e
push eax
lea ecx, [ebp - 0x44]
call fcn.00402bd8
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004016e6
push 0x1c
lea eax, [ebp - 0x64]
mov ecx, 0x4d3158
push eax
call fcn.0040b60f
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
cmp dword [eax + 0x14], 8
jb 0x491c3a
mov eax, dword [eax]
push 0x30
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004016e6
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x6d], 1
call fcn.004016e6
jmp 0x4925fd
mov eax, dword [0x4fae90]
mov edi, 0x4fae90
mov ecx, edi
mov dword [ebp - 0x78], ebx
call dword [eax + 0x14]
test eax, eax
je 0x491ca2
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
call fcn.004930df
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0049374c
movzx eax, al
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], bl
call fcn.004028dc
call fcn.00490c59
call fcn.00490b87
sub esp, 0x10
mov esi, 0x4d3188
mov ecx, esp
mov dword [ebp - 0x84], esp
push esi
call fcn.0040234d
sub esp, 0x10
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x94], esp
push esi
call fcn.0040234d
sub esp, 0x10
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x98], esp
push esi
call fcn.0040234d
sub esp, 0x10
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x9c], esp
push esi
call fcn.0040234d
sub esp, 0x10
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0xa0], esp
push esi
call fcn.0040234d
sub esp, 0x10
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0xa4], esp
push esi
call fcn.0040234d
sub esp, 0x10
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0xa8], esp
push esi
call fcn.0040234d
sub esp, 0x10
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0xac], esp
push esi
call fcn.0040234d
sub esp, 0x10
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0xb0], esp
push esi
call fcn.0040234d
sub esp, 0x10
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0xb4], esp
push esi
call fcn.0040234d
sub esp, 0x10
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0xb8], esp
push esi
call fcn.0040234d
mov byte [ebp - 4], 0xf
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0xbc], esp
push esi
call fcn.0040234d
mov byte [ebp - 4], 0x10
mov esi, 0x4fad28
cmp dword [0x4fad3c], 8
mov eax, esi
push ecx
cmovae eax, dword [0x4fad28]
mov ecx, esp
mov dword [ebp - 0x90], esp
push eax
call fcn.0040a0ef
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
push eax
mov ecx, edi
call fcn.0049325f
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x13
push ecx
mov ecx, eax
call fcn.00493a8e
lea ecx, [ebp - 0x6c]
call fcn.004028dc
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.004028dc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4fad3c], 8
cmovae esi, dword [0x4fad28]
push esi
call fcn.0044f46f
cmp dword [0x4faed8], 0xe
pop ecx
mov ecx, edi
jl 0x491e3a
call fcn.0048fdcf
mov dword [0x4faeb0], eax
jmp 0x491e9a
lea eax, [ebp - 0x84]
push eax
call fcn.00493180
mov esi, eax
push 0x18
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x14
push eax
mov ecx, 0x4d3158
call fcn.0040b60f
mov ecx, dword [esi]
test ecx, ecx
je 0x491e66
mov ecx, dword [ecx]
jmp 0x491e68
mov ecx, ebx
cmp dword [eax + 0x14], 8
jb 0x491e70
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
push ebx
push 1
lea ecx, [ebp - 0x64]
mov dword [0x4faeb0], eax
call fcn.004016e6
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x491e9a
call fcn.004020f9
push dword [0x4faeb0]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x491eba
lea eax, [ebp - 0x74]
push eax
push dword [0x4faeb0]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x17
lea eax, [ebp - 0x64]
mov ecx, 0x4d3158
push eax
call fcn.0040b60f
mov byte [ebp - 4], 0x15
cmp dword [eax + 0x14], 8
jb 0x491ed6
mov eax, dword [eax]
push ecx
mov ecx, esp
push eax
call fcn.0040a0ef
mov ecx, edi
call fcn.0049313a
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.004016e6
mov eax, dword [0x4faef4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x491f0c
mov eax, dword [0x4faef8]
test eax, eax
je 0x491f1c
push eax
push 1
push 0x80
push dword [0x4faeb0]
call edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x487
push dword [0x4faeb0]
call edi
mov esi, 0x4fae90
push ebx
mov ecx, esi
call fcn.00493704
mov ecx, esi
call fcn.004930b6
push ebx
push eax
push 0x49d
push dword [0x4faeb0]
call edi
mov eax, dword [0x4faedc]
test eax, eax
je 0x491f6e
push ebx
push eax
push 0x49a
push dword [0x4faeb0]
call edi
mov eax, dword [0x4faeec]
test eax, eax
je 0x491f7e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 0x16
mov eax, dword [0x4facd8]
test eax, eax
je 0x491fcb
cmp dword [0x4facdc], 8
mov edx, 0x4facc8
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4facc8]
add eax, eax
push eax
call fcn.00412165
pop ecx
push dword [0x4facd8]
push eax
push 0x488
push dword [0x4faeb0]
call edi
lea eax, [ebp - 0x2c]
push eax
push 0x413
call fcn.00490e4c
test al, al
je 0x492014
cmp dword [ebp - 0x1c], 2
jbe 0x492014
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x74]
call fcn.00412165
pop ecx
push dword [ebp - 0x1c]
push eax
push 0x484
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409cfa
lea eax, [ebp - 0x2c]
push eax
push 0x415
call fcn.00490e4c
test al, al
je 0x49205d
cmp dword [ebp - 0x1c], 2
jbe 0x49205d
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x74]
call fcn.00412165
pop ecx
push dword [ebp - 0x1c]
push eax
push 0x486
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409cfa
mov eax, dword [0x4fad08]
test eax, eax
je 0x492099
cmp dword [0x4fad0c], 8
mov edx, 0x4facf8
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4facf8]
add eax, eax
push eax
call fcn.00412165
pop ecx
push dword [0x4fad08]
push eax
push 0x48d
push dword [0x4faeb0]
call edi
mov eax, dword [0x4fad20]
test eax, eax
je 0x4920d5
cmp dword [0x4fad24], 8
mov edx, 0x4fad10
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4fad10]
add eax, eax
push eax
call fcn.00412165
pop ecx
push dword [0x4fad20]
push eax
push 0x48e
push dword [0x4faeb0]
call edi
mov eax, dword [0x4faf0c]
test eax, eax
je 0x492119
cmp dword [0x4faf10], 0x10
mov esi, 0x4faefc
mov ecx, dword [ebp - 0x74]
mov edx, esi
cmovae edx, dword [0x4faefc]
push eax
call fcn.00412165
pop ecx
push dword [0x4faf0c]
push eax
push 0x483
push dword [0x4faeb0]
call edi
push ebx
mov ecx, esi
call fcn.00409cfa
mov eax, dword [0x4faf24]
test eax, eax
je 0x49215d
cmp dword [0x4faf28], 0x10
mov esi, 0x4faf14
mov ecx, dword [ebp - 0x74]
mov edx, esi
cmovae edx, dword [0x4faf14]
push eax
call fcn.00412165
pop ecx
push dword [0x4faf24]
push eax
push 0x482
push dword [0x4faeb0]
call edi
push ebx
mov ecx, esi
call fcn.00409cfa
mov eax, dword [0x4fae30]
test eax, eax
je 0x492199
cmp dword [0x4fae34], 8
mov edx, 0x4fae20
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4fae20]
add eax, eax
push eax
call fcn.00412165
pop ecx
push dword [0x4fae30]
push eax
push 0x489
push dword [0x4faeb0]
call edi
mov eax, dword [0x4fae48]
test eax, eax
je 0x4921d5
cmp dword [0x4fae4c], 8
mov edx, 0x4fae38
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4fae38]
add eax, eax
push eax
call fcn.00412165
pop ecx
push dword [0x4fae48]
push eax
push 0x48a
push dword [0x4faeb0]
call edi
mov esi, ebx
cmp esi, 0xc8
jge 0x492236
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 0x4b0]
push eax
call fcn.00490e4c
test al, al
je 0x492227
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x74]
call fcn.00412165
pop ecx
push dword [ebp - 0x1c]
push eax
push 0x485
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409cfa
inc esi
jmp 0x4921d7
push ebx
push ebx
push 0x485
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409cfa
lea eax, [ebp - 0x2c]
push eax
push 0x453
call fcn.00490e4c
test al, al
je 0x492288
cmp dword [ebp - 0x1c], 2
jbe 0x492288
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x74]
call fcn.00412165
pop ecx
push dword [ebp - 0x1c]
push eax
push 0x48c
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409cfa
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409cfa
lea eax, [ebp - 0x2c]
push eax
push 0x40b
call fcn.00490e4c
test al, al
je 0x4922da
cmp dword [ebp - 0x1c], 2
jbe 0x4922da
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x74]
call fcn.00412165
pop ecx
push dword [ebp - 0x1c]
push eax
push 0x490
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409cfa
mov eax, dword [0x4faf3c]
test eax, eax
je 0x492322
cmp eax, 2
jbe 0x492322
cmp dword [0x4faf40], 0x10
mov edx, 0x4faf2c
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4faf2c]
push eax
call fcn.00412165
pop ecx
push dword [0x4faf3c]
push eax
push 0x48b
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409cfa
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x44]
call fcn.004036b5
cmp dword [ebp - 0x30], 8
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
cmovae edx, dword [ebp - 0x44]
add eax, eax
mov ecx, dword [ebp - 0x74]
push eax
call fcn.00412165
pop ecx
push dword [ebp - 0x1c]
push eax
push 0x49b
push dword [0x4faeb0]
call edi
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.004016e6
cmp dword [0x4faedc], 0
mov esi, 0x4fae90
jne 0x492384
cmp byte [0x4fadb3], 0
mov ecx, esi
jne 0x49238e
push 1
jmp 0x49238f
push ecx
mov ecx, esi
call fcn.00493206
mov ecx, esi
push ebx
call fcn.00493704
push ecx
mov ecx, esi
call fcn.0049372e
mov byte [ebp - 4], 0x17
mov eax, dword [0x4faed8]
cmp eax, 0xe
jl 0x4923b7
push ecx
mov ecx, esi
call fcn.0049304e
mov eax, dword [0x4faed8]
cmp byte [0x4fadb4], 0
je 0x492452
cmp eax, 0xc
jge 0x492452
mov eax, dword [0x4faed0]
cmp eax, 0x34
je 0x4923dc
cmp eax, 0x32
jne 0x492452
push 0x22
lea eax, [ebp - 0x64]
mov ecx, 0x4d3158
push eax
call fcn.0040b60f
cmp dword [eax + 0x14], 8
jb 0x4923f4
mov eax, dword [eax]
push 0x10
push str.Error
push eax
push dword [0x4faeb0]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004016e6
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.0049325f
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.00493a1d
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x17
call fcn.004028dc
mov ecx, esi
call fcn.004931bb
mov dword [ebp - 0x88], ebx
lea eax, [ebp - 0x88]
push 0x4caeb4
jmp 0x491ab3
push ebx
push ebx
push 0x493
push dword [0x4faeb0]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x4fae90]
mov ecx, esi
push ebx
call dword [eax + 0xc]
mov al, byte [ebp - 0x6d]
jmp 0x49248c
mov dword [ebp - 4], 0x16
test al, al
je 0x4924d6
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.0049325f
mov ecx, eax
mov byte [ebp - 4], 0x1a
call fcn.00493a1d
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x16
call fcn.004028dc
mov ecx, esi
call fcn.004931bb
mov dword [ebp - 0x8c], ebx
lea eax, [ebp - 0x8c]
push 0x4caeb4
jmp 0x491ab3
mov eax, dword [0x4faee4]
test eax, eax
je 0x4924ed
push ebx
push ebx
push 0x501
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408b84
jmp 0x4925fd
mov al, byte [ebp - 0x6d]
mov dword [ebp - 4], 0x1e
mov byte [0x4faed4], al
call fcn.00491464
cmp byte [0x4faed4], 0
jne 0x49263f
push str.SwitchToThisWindow
push str.User32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49263f
push 1
push dword [0x4faeb0]
call eax
call fcn.0044c019
push ebx
push dword [0x4faee8]
mov esi, eax
sub esi, dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x49269e
mov ecx, 0x1388
cmp esi, ecx
jge 0x49266c
sub ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageW]
push ebx
push ebx
push 0x502
push dword [0x4faee4]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
push ebx
push ebx
push 0x502
push dword [0x4faee4]
call edi
push 0x64
call esi
mov al, 1
call fcn.00429a92
ret