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

Disassembly:
push 0x118
mov eax, 0x4a178d
call fcn.00429b55
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.0048fc06
mov eax, dword [0x4b392f]
cmp eax, dword [0x4fae50]
je 0x491cf1
push 0x16
lea eax, [ebp - 0x64]
mov ecx, 0x4d3158
push eax
call fcn.0040b802
cmp dword [eax + 0x14], 0x10
jb 0x491c9f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040a222
mov esi, 0x4b3840
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.00408c90
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040a259
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], esi
push 0x4caf3c
push eax
call fcn.004439cc
cmp dword [0x4fade8], 0
je 0x491d0a
call fcn.004902be
mov byte [ebp - 0x6d], al
cmp al, 1
je 0x492835
mov esi, 0x4faf2c
push esi
push 0x451
call fcn.00491067
cmp dword [0x4faf3c], 2
jbe 0x491d49
cmp dword [0x4faedc], 0
jne 0x491d49
push dword [0x4faef4]
push dword [0x4faef8]
push esi
call fcn.00490437
mov byte [ebp - 0x6d], al
cmp al, 1
je 0x492835
call fcn.0048fe28
cmp dword [0x4faed8], 0xe
jge 0x491d5c
mov byte [ebp - 0x78], bl
jmp 0x491d64
call fcn.0049013f
mov byte [ebp - 0x78], al
push dword [ebp - 0x78]
call fcn.00490c77
test al, al
jne 0x491de3
mov ecx, 0x4fae90
call fcn.004933f3
push str.This_application_can_only_be_started_with_Excel_32_bit.
lea ecx, [ebp - 0x64]
call fcn.0040678a
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.0040a222
mov esi, 0x4b3840
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.00408c90
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040a259
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], esi
push 0x4caf3c
jmp 0x491ceb
call fcn.004908a9
cmp byte [0x4fadb4], 1
mov dword [ebp - 0x80], eax
jne 0x491e9c
cmp dword [0x4faed8], 9
jg 0x491e9c
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 0x491e2f
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.00492b66
push eax
lea ecx, [ebp - 0x44]
call fcn.00402c28
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00401736
push 0x1c
lea eax, [ebp - 0x64]
mov ecx, 0x4d3158
push eax
call fcn.0040b71d
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
cmp dword [eax + 0x14], 8
jb 0x491e72
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.00401736
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x6d], 1
call fcn.00401736
jmp 0x492835
mov eax, dword [0x4fae90]
mov edi, 0x4fae90
mov ecx, edi
mov dword [ebp - 0x78], ebx
call dword [eax + 0x14]
test eax, eax
je 0x491eda
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
call fcn.00493317
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00493983
movzx eax, al
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], bl
call fcn.0040292c
call fcn.00490df8
call fcn.00490d04
sub esp, 0x10
mov esi, 0x4d3188
mov ecx, esp
mov dword [ebp - 0x84], esp
push esi
call fcn.0040239d
sub esp, 0x10
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x94], esp
push esi
call fcn.0040239d
sub esp, 0x10
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x98], esp
push esi
call fcn.0040239d
sub esp, 0x10
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x9c], esp
push esi
call fcn.0040239d
sub esp, 0x10
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0xa0], esp
push esi
call fcn.0040239d
sub esp, 0x10
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0xa4], esp
push esi
call fcn.0040239d
sub esp, 0x10
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0xa8], esp
push esi
call fcn.0040239d
sub esp, 0x10
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0xac], esp
push esi
call fcn.0040239d
sub esp, 0x10
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0xb0], esp
push esi
call fcn.0040239d
sub esp, 0x10
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0xb4], esp
push esi
call fcn.0040239d
sub esp, 0x10
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0xb8], esp
push esi
call fcn.0040239d
mov byte [ebp - 4], 0xf
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0xbc], esp
push esi
call fcn.0040239d
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.0040a18f
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
push eax
mov ecx, edi
call fcn.00493497
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x13
push ecx
mov ecx, eax
call fcn.00493cc5
lea ecx, [ebp - 0x6c]
call fcn.0040292c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040292c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4fad3c], 8
cmovae esi, dword [0x4fad28]
push esi
call fcn.0044f4ea
cmp dword [0x4faed8], 0xe
pop ecx
mov ecx, edi
jl 0x492072
call fcn.0048ff12
mov dword [0x4faeb0], eax
jmp 0x4920d2
lea eax, [ebp - 0x84]
push eax
call fcn.004933b8
mov esi, eax
push 0x18
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x14
push eax
mov ecx, 0x4d3158
call fcn.0040b71d
mov ecx, dword [esi]
test ecx, ecx
je 0x49209e
mov ecx, dword [ecx]
jmp 0x4920a0
mov ecx, ebx
cmp dword [eax + 0x14], 8
jb 0x4920a8
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.00401736
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x4920d2
call fcn.00402149
push dword [0x4faeb0]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4920f2
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.0040b71d
mov byte [ebp - 4], 0x15
cmp dword [eax + 0x14], 8
jb 0x49210e
mov eax, dword [eax]
push ecx
mov ecx, esp
push eax
call fcn.0040a18f
mov ecx, edi
call fcn.00493372
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.00401736
mov eax, dword [0x4faef4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x492144
mov eax, dword [0x4faef8]
test eax, eax
je 0x492154
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.0049393b
mov ecx, esi
call fcn.004932ee
push ebx
push eax
push 0x49d
push dword [0x4faeb0]
call edi
mov eax, dword [0x4faedc]
test eax, eax
je 0x4921a6
push ebx
push eax
push 0x49a
push dword [0x4faeb0]
call edi
mov eax, dword [0x4faeec]
test eax, eax
je 0x4921b6
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 0x492203
cmp dword [0x4facdc], 8
mov edx, 0x4facc8
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4facc8]
add eax, eax
push eax
call fcn.00412209
pop ecx
push dword [0x4facd8]
push eax
push 0x488
push dword [0x4faeb0]
call edi
lea eax, [ebp - 0x2c]
push eax
push 0x413
call fcn.00490feb
test al, al
je 0x49224c
cmp dword [ebp - 0x1c], 2
jbe 0x49224c
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.00412209
pop ecx
push dword [ebp - 0x1c]
push eax
push 0x484
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409d9a
lea eax, [ebp - 0x2c]
push eax
push 0x415
call fcn.00490feb
test al, al
je 0x492295
cmp dword [ebp - 0x1c], 2
jbe 0x492295
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.00412209
pop ecx
push dword [ebp - 0x1c]
push eax
push 0x486
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409d9a
mov eax, dword [0x4fad08]
test eax, eax
je 0x4922d1
cmp dword [0x4fad0c], 8
mov edx, 0x4facf8
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4facf8]
add eax, eax
push eax
call fcn.00412209
pop ecx
push dword [0x4fad08]
push eax
push 0x48d
push dword [0x4faeb0]
call edi
mov eax, dword [0x4fad20]
test eax, eax
je 0x49230d
cmp dword [0x4fad24], 8
mov edx, 0x4fad10
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4fad10]
add eax, eax
push eax
call fcn.00412209
pop ecx
push dword [0x4fad20]
push eax
push 0x48e
push dword [0x4faeb0]
call edi
mov eax, dword [0x4faf0c]
test eax, eax
je 0x492351
cmp dword [0x4faf10], 0x10
mov esi, 0x4faefc
mov ecx, dword [ebp - 0x74]
mov edx, esi
cmovae edx, dword [0x4faefc]
push eax
call fcn.00412209
pop ecx
push dword [0x4faf0c]
push eax
push 0x483
push dword [0x4faeb0]
call edi
push ebx
mov ecx, esi
call fcn.00409d9a
mov eax, dword [0x4faf24]
test eax, eax
je 0x492395
cmp dword [0x4faf28], 0x10
mov esi, 0x4faf14
mov ecx, dword [ebp - 0x74]
mov edx, esi
cmovae edx, dword [0x4faf14]
push eax
call fcn.00412209
pop ecx
push dword [0x4faf24]
push eax
push 0x482
push dword [0x4faeb0]
call edi
push ebx
mov ecx, esi
call fcn.00409d9a
mov eax, dword [0x4fae30]
test eax, eax
je 0x4923d1
cmp dword [0x4fae34], 8
mov edx, 0x4fae20
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4fae20]
add eax, eax
push eax
call fcn.00412209
pop ecx
push dword [0x4fae30]
push eax
push 0x489
push dword [0x4faeb0]
call edi
mov eax, dword [0x4fae48]
test eax, eax
je 0x49240d
cmp dword [0x4fae4c], 8
mov edx, 0x4fae38
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4fae38]
add eax, eax
push eax
call fcn.00412209
pop ecx
push dword [0x4fae48]
push eax
push 0x48a
push dword [0x4faeb0]
call edi
mov esi, ebx
cmp esi, 0xc8
jge 0x49246e
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 0x4b0]
push eax
call fcn.00490feb
test al, al
je 0x49245f
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.00412209
pop ecx
push dword [ebp - 0x1c]
push eax
push 0x485
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409d9a
inc esi
jmp 0x49240f
push ebx
push ebx
push 0x485
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409d9a
lea eax, [ebp - 0x2c]
push eax
push 0x453
call fcn.00490feb
test al, al
je 0x4924c0
cmp dword [ebp - 0x1c], 2
jbe 0x4924c0
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.00412209
pop ecx
push dword [ebp - 0x1c]
push eax
push 0x48c
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409d9a
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409d9a
lea eax, [ebp - 0x2c]
push eax
push 0x40b
call fcn.00490feb
test al, al
je 0x492512
cmp dword [ebp - 0x1c], 2
jbe 0x492512
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.00412209
pop ecx
push dword [ebp - 0x1c]
push eax
push 0x490
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409d9a
mov eax, dword [0x4faf3c]
test eax, eax
je 0x49255a
cmp eax, 2
jbe 0x49255a
cmp dword [0x4faf40], 0x10
mov edx, 0x4faf2c
mov ecx, dword [ebp - 0x74]
cmovae edx, dword [0x4faf2c]
push eax
call fcn.00412209
pop ecx
push dword [0x4faf3c]
push eax
push 0x48b
push dword [0x4faeb0]
call edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409d9a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403705
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.00412209
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.00401736
cmp dword [0x4faedc], 0
mov esi, 0x4fae90
jne 0x4925bc
cmp byte [0x4fadb3], 0
mov ecx, esi
jne 0x4925c6
push 1
jmp 0x4925c7
push ecx
mov ecx, esi
call fcn.0049343e
mov ecx, esi
push ebx
call fcn.0049393b
push ecx
mov ecx, esi
call fcn.00493965
mov byte [ebp - 4], 0x17
mov eax, dword [0x4faed8]
cmp eax, 0xe
jl 0x4925ef
push ecx
mov ecx, esi
call fcn.00493286
mov eax, dword [0x4faed8]
cmp byte [0x4fadb4], 0
je 0x49268a
cmp eax, 0xc
jge 0x49268a
mov eax, dword [0x4faed0]
cmp eax, 0x34
je 0x492614
cmp eax, 0x32
jne 0x49268a
push 0x22
lea eax, [ebp - 0x64]
mov ecx, 0x4d3158
push eax
call fcn.0040b71d
cmp dword [eax + 0x14], 8
jb 0x49262c
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.00401736
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.00493497
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.00493c54
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x17
call fcn.0040292c
mov ecx, esi
call fcn.004933f3
mov dword [ebp - 0x88], ebx
lea eax, [ebp - 0x88]
push 0x4caedc
jmp 0x491ceb
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 0x4926c4
mov dword [ebp - 4], 0x16
test al, al
je 0x49270e
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.00493497
mov ecx, eax
mov byte [ebp - 4], 0x1a
call fcn.00493c54
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x16
call fcn.0040292c
mov ecx, esi
call fcn.004933f3
mov dword [ebp - 0x8c], ebx
lea eax, [ebp - 0x8c]
push 0x4caedc
jmp 0x491ceb
mov eax, dword [0x4faee4]
test eax, eax
je 0x492725
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.00408c24
jmp 0x492835
mov al, byte [ebp - 0x6d]
mov dword [ebp - 4], 0x1e
mov byte [0x4faed4], al
call fcn.0049169c
cmp byte [0x4faed4], 0
jne 0x492877
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 0x492877
push 1
push dword [0x4faeb0]
call eax
call fcn.0044c0cb
push ebx
push dword [0x4faee8]
mov esi, eax
sub esi, dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4928d6
mov ecx, 0x1388
cmp esi, ecx
jge 0x4928a4
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.00429aa2
ret