Function at 0x4c0850
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x404926
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xa0
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401df0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
xor ecx, ecx
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I2]
mov byte [0x56ac90], al
mov dword [ebp - 4], 4
mov ecx, 1
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I2]
mov byte [ebp - 0x3c], al
lea eax, [ebp - 0x3c]
push eax
call fcn.004d35e0
mov word [ebp - 0x38], ax
mov dword [ebp - 4], 5
cmp word [ebp - 0x38], 0xffff
jne 0x4c08ed
jmp 0x4c0f60
mov dword [ebp - 4], 8
mov ecx, dword [0x56acd4]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
jne 0x4c09b6
mov dword [ebp - 4], 9
mov ecx, 1
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I2]
mov ecx, dword [0x56acd4]
mov byte [ecx], al
mov dword [ebp - 4], 0xa
cmp dword [0x56a510], 0
jne 0x4c0949
push 0x56a510
push 0x43c720
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov dword [ebp - 0x74], 0x56a510
jmp 0x4c0950
mov dword [ebp - 0x74], 0x56a510
mov edx, dword [ebp - 0x74]
mov eax, dword [edx]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x48]
push ecx
call dword [eax + 0x58]
fnclex
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x4c098d
push 0x58
push 0x440cac
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x78], eax
jmp 0x4c0994
mov dword [ebp - 0x78], 0
push 0x4c0fa0
push 0xfffffffffffffffc
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00442ce4
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x44]
mov dword [0x56acb0], edx
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0xd
mov ecx, 1
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov ecx, dword [ebp - 0x54]
mov word [ecx], ax
mov dword [ebp - 4], 0xe
mov edx, dword [ebp - 0x54]
mov word [edx + 2], 2
mov dword [ebp - 4], 0xf
mov eax, dword [ebp - 0x54]
mov word [eax + 0xe], 0x10
mov dword [ebp - 4], 0x10
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 4], 0xbb80
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
mov cx, word [edx + 2]
imul cx, word [eax + 0xe]
jo 0x4c0f76
movsx edx, cx
mov dword [ebp - 0x7c], edx
fild dword [ebp - 0x7c]
fstp qword [ebp - 0x84]
fld qword [ebp - 0x84]
cmp dword [section..data], 0
jne 0x4c0a4e
fdiv qword [0x401d30]
jmp 0x4c0a5f
push dword [0x401d34]
push dword [0x401d30]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fnstsw ax
test al, 0xd
jne 0x4c0f71
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
mov ecx, dword [ebp - 0x54]
mov word [ecx + 0xc], ax
mov dword [ebp - 4], 0x12
mov edx, dword [ebp - 0x54]
movsx eax, word [edx + 0xc]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 4]
imul edx, eax
jo 0x4c0f76
mov eax, dword [ebp - 0x54]
mov dword [eax + 8], edx
mov dword [ebp - 4], 0x13
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0x14
cmp dword [0x56a510], 0
jne 0x4c0ad3
push 0x56a510
push 0x43c720
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov dword [ebp - 0x88], 0x56a510
jmp 0x4c0add
mov dword [ebp - 0x88], 0x56a510
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx]
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x48]
push eax
call dword [edx + 0x58]
fnclex
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x4c0b20
push 0x58
push 0x440cac
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x8c], eax
jmp 0x4c0b2a
mov dword [ebp - 0x8c], 0
push 0x10000
push 0xffffffffffffffff
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
push ecx
movsx edx, word [ebp - 0x38]
push edx
push 0x56acb4
call fcn.00442db8
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor eax, eax
cmp dword [ebp - 0x44], 0
sete al
neg eax
movsx ecx, ax
test ecx, ecx
je 0x4c0f60
mov dword [ebp - 4], 0x15
mov ecx, 1
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I2]
mov byte [0x56ac90], al
mov dword [ebp - 4], 0x16
mov word [ebp - 0x5c], 0xc8
mov word [ebp - 0x58], 1
mov word [ebp - 0x24], 1
jmp 0x4c0bab
mov dx, word [ebp - 0x24]
add dx, word [ebp - 0x58]
jo 0x4c0f76
mov word [ebp - 0x24], dx
mov ax, word [ebp - 0x24]
cmp ax, word [ebp - 0x5c]
jg 0x4c0f60
mov dword [ebp - 4], 0x17
movsx ecx, word [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0xc8
jae 0x4c0bdf
mov dword [ebp - 0x90], 0
jmp 0x4c0beb
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x48]
shl edx, 5
mov eax, dword [0x56aca4]
mov dword [eax + edx + 4], 0x400
mov dword [ebp - 4], 0x18
movsx ecx, word [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0xc8
jae 0x4c0c24
mov dword [ebp - 0x94], 0
jmp 0x4c0c30
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x48]
mov eax, dword [0x56acc8]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00442c54
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x19
movsx edx, word [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 0xc8
jae 0x4c0c6d
mov dword [ebp - 0x98], 0
jmp 0x4c0c79
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x4c]
shl eax, 5
mov ecx, dword [0x56aca4]
mov edx, dword [ecx + eax + 4]
push edx
push 0
call fcn.00442bcc
mov dword [ebp - 0x40], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
movsx eax, word [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xc8
jae 0x4c0cb9
mov dword [ebp - 0x9c], 0
jmp 0x4c0cc5
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [0x56acc8]
mov eax, dword [ebp - 0x40]
mov dword [edx + ecx*4], eax
mov dword [ebp - 4], 0x1a
movsx ecx, word [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0xc8
jae 0x4c0cfa
mov dword [ebp - 0xa0], 0
jmp 0x4c0d06
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x56acc8]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00442c10
mov dword [ebp - 0x40], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
movsx edx, word [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0xc8
jae 0x4c0d3f
mov dword [ebp - 0xa4], 0
jmp 0x4c0d4b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x48]
shl eax, 5
mov ecx, dword [0x56aca4]
mov edx, dword [ebp - 0x40]
mov dword [ecx + eax], edx
mov dword [ebp - 4], 0x1b
movsx eax, word [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xc8
jae 0x4c0d83
mov dword [ebp - 0xa8], 0
jmp 0x4c0d8f
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x48]
shl ecx, 5
mov edx, dword [0x56aca4]
mov dword [edx + ecx + 0x10], 0
mov dword [ebp - 4], 0x1c
movsx eax, word [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xc8
jae 0x4c0dc9
mov dword [ebp - 0xac], 0
jmp 0x4c0dd5
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0x48]
shl ecx, 5
mov edx, dword [0x56aca4]
mov dword [edx + ecx + 0x14], 0
mov dword [ebp - 4], 0x1d
movsx eax, word [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xc8
jae 0x4c0e0f
mov dword [ebp - 0xb0], 0
jmp 0x4c0e1b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xb0], eax
movsx ecx, word [ebp - 0x24]
mov edx, dword [ebp - 0x48]
shl edx, 5
mov eax, dword [0x56aca4]
mov dword [eax + edx + 0xc], ecx
mov dword [ebp - 4], 0x1e
movsx ecx, word [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0xc8
jae 0x4c0e54
mov dword [ebp - 0xb4], 0
jmp 0x4c0e60
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xb4], eax
push 0x20
mov edx, dword [ebp - 0x48]
shl edx, 5
mov eax, dword [0x56aca4]
add eax, edx
push eax
mov ecx, dword [0x56acb4]
push ecx
call fcn.00442e18
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x1f
cmp dword [0x56a510], 0
jne 0x4c0eae
push 0x56a510
push 0x43c720
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov dword [ebp - 0xb8], 0x56a510
jmp 0x4c0eb8
mov dword [ebp - 0xb8], 0x56a510
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x48]
push ecx
call dword [eax + 0x58]
fnclex
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x4c0efb
push 0x58
push 0x440cac
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xbc], eax
jmp 0x4c0f05
mov dword [ebp - 0xbc], 0
movsx ecx, word [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0xc8
jae 0x4c0f24
mov dword [ebp - 0xc0], 0
jmp 0x4c0f30
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0x50]
shl edx, 5
mov eax, dword [0x56aca4]
add eax, edx
push eax
push 0
push 0x3bd
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00442ef8
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x20
jmp 0x4c0b99
mov ecx, dword [ebp - 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.0040492c
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
int3